@Immutable public final class Traversal extends Gfa1Record
| Constructor and Description |
|---|
Traversal(String pathName,
int ordinal,
Reference source,
Reference target,
String overlap,
Map<String,Tag> tags)
Create a new traversal GFA 1.0 record.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getOrdinal()
Return the ordinal for this traversal.
|
String |
getOverlap()
Return the overlap in cigar format for this traversal, if any.
|
Optional<String> |
getOverlapOpt()
Return an optional wrapping the overlap for this traversal.
|
String |
getPathName()
Return the path name for this traversal.
|
Reference |
getSource()
Return the source reference for this traversal.
|
Reference |
getTarget()
Return the target reference for this traversal.
|
int |
hashCode() |
boolean |
hasOverlap()
Return true if this traversal has an overlap in cigar format.
|
String |
toString() |
static Traversal |
valueOf(String value)
Parse a traversal GFA 1.0 record from the specified value.
|
containsTagKey, getTagByteArray, getTagByteArrayOpt, getTagBytes, getTagBytesOpt, getTagCharacter, getTagCharacterOpt, getTagFloat, getTagFloatOpt, getTagFloats, getTagFloatsOpt, getTagInteger, getTagIntegerOpt, getTagIntegers, getTagIntegersOpt, getTags, getTagString, getTagStringOptpublic Traversal(String pathName, int ordinal, Reference source, Reference target, @Nullable String overlap, Map<String,Tag> tags)
pathName - path name, must not be nullordinal - ordinal, must be at least zerosource - source reference, must not be nulltarget - target reference, must not be nulloverlap - overlap, if anytags - tags, must not be nullpublic String getPathName()
public int getOrdinal()
public Reference getSource()
public Reference getTarget()
public boolean hasOverlap()
public String getOverlap()
public Optional<String> getOverlapOpt()
Copyright © 2013–2020 dishevelled.org. All rights reserved.