public abstract class GfaRecord extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
GfaRecord(Map<String,Tag> tags)
Create a new GFA record with the specified tags.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsTagKey(String key)
Return true if this GFA record contains the specified tag key.
|
byte[] |
getTagByteArray(String key)
Return the Type=H field value for the specified key parsed into a byte array.
|
Optional<byte[]> |
getTagByteArrayOpt(String key)
Return an optional wrapping the Type=H field value for the specified key parsed into a byte array.
|
List<Byte> |
getTagBytes(String key)
Return the Type=H field value for the specified key parsed into an immutable list of bytes.
|
Optional<List<Byte>> |
getTagBytesOpt(String key)
Return an optional wrapping the Type=H field value for the specified key parsed into an immutable list of bytes.
|
char |
getTagCharacter(String key)
Return the Type=A field value for the specified key parsed into a character.
|
Optional<Character> |
getTagCharacterOpt(String key)
Return an optional wrapping the Type=A field value for the specified key parsed into a character.
|
float |
getTagFloat(String key)
Return the Type=f field value for the specified key parsed into a float.
|
Optional<Float> |
getTagFloatOpt(String key)
Return an optional wrapping the Type=f field value for the specified key parsed into a float.
|
List<Float> |
getTagFloats(String key)
Return the Type=B first letter f field value for the specified key parsed
into an immutable list of floats.
|
Optional<List<Float>> |
getTagFloatsOpt(String key)
Return an optional wrapping the Type=B first letter f field value for the specified key parsed
into an immutable list of floats.
|
int |
getTagInteger(String key)
Return the Type=i field value for the specified key parsed into an integer.
|
Optional<Integer> |
getTagIntegerOpt(String key)
Return an optional wrapping the Type=i field value for the specified key parsed into an integer.
|
List<Integer> |
getTagIntegers(String key)
Return the Type=B first letter [cCsSiI] field value for the specified key parsed
into an immutable list of integers.
|
Optional<List<Integer>> |
getTagIntegersOpt(String key)
Return an optional wrapping the Type=B first letter [cCsSiI] field value for the specified key parsed
into an immutable list of integers.
|
Map<String,Tag> |
getTags()
Return an immutable map of tags keyed by tag name
for this GFA record.
|
String |
getTagString(String key)
Return the Type=Z field value for the specified key parsed into a string.
|
Optional<String> |
getTagStringOpt(String key)
Return an optional wrapping the Type=Z field value for the specified key parsed into a string.
|
public final Map<String,Tag> getTags()
public final boolean containsTagKey(String key)
key - keypublic final char getTagCharacter(String key)
key - key, must not be nullpublic final float getTagFloat(String key)
key - key, must not be nullpublic final int getTagInteger(String key)
key - key, must not be nullpublic final byte[] getTagByteArray(String key)
key - key, must not be nullpublic final List<Byte> getTagBytes(String key)
key - key, must not be nullpublic final String getTagString(String key)
key - key, must not be nullpublic final List<Float> getTagFloats(String key)
key - key, must not be nullpublic final List<Integer> getTagIntegers(String key)
key - key, must not be nullpublic final Optional<Character> getTagCharacterOpt(String key)
key - key, must not be nullpublic final Optional<Float> getTagFloatOpt(String key)
key - key, must not be nullpublic final Optional<Integer> getTagIntegerOpt(String key)
key - key, must not be nullpublic final Optional<String> getTagStringOpt(String key)
key - key, must not be nullpublic final Optional<byte[]> getTagByteArrayOpt(String key)
key - key, must not be nullpublic final Optional<List<Byte>> getTagBytesOpt(String key)
key - key, must not be nullpublic final Optional<List<Float>> getTagFloatsOpt(String key)
key - key, must not be nullpublic final Optional<List<Integer>> getTagIntegersOpt(String key)
key - key, must not be nullCopyright © 2013–2020 dishevelled.org. All rights reserved.