Serializable
SAMBinaryTagAndUnsignedArrayValue
public class SAMBinaryTagAndValue extends Object implements Serializable
Serializable
or else
serialization will fail. Accepted types are String, scalar types Short, Integer, Character, Float,
and Long (see below); array types byte[], short[], int[] and float[]. Cannot be null.
Long valued attributes are constrained to the range [Integer.MIN_VALUE, BinaryCodec.MAX_UINT],
which includes the entire range of signed ints [Integer.MIN_VALUE, Integer.MAX_VALUE] and
the entire range of unsigned ints that can be stored per the BAM spec [0, (Integer.MAX_VALUE * 2) + 1].Modifier and Type | Field | Description |
---|---|---|
protected SAMBinaryTagAndValue |
next |
|
static long |
serialVersionUID |
|
short |
tag |
|
Object |
value |
Constructor | Description |
---|---|
SAMBinaryTagAndValue(short tag,
Object value) |
Modifier and Type | Method | Description |
---|---|---|
protected Object |
cloneValue() |
|
SAMBinaryTagAndValue |
copy() |
Creates and returns a shallow copy of the list of tag/values.
|
SAMBinaryTagAndValue |
deepCopy() |
Creates and returns a deep copy of the list of tag/values.
|
boolean |
equals(Object o) |
|
SAMBinaryTagAndValue |
find(short tag) |
Returns the SAMBinaryTagAndValue that contains the required tag, or null if not contained.
|
SAMBinaryTagAndValue |
getNext() |
|
int |
hashCode() |
|
SAMBinaryTagAndValue |
insert(SAMBinaryTagAndValue attr) |
Inserts at item into the ordered list of attributes and returns the head of the list/sub-list
|
protected static boolean |
isAllowedAttributeValue(Object value) |
|
boolean |
isUnsignedArray() |
|
SAMBinaryTagAndValue |
remove(short tag) |
Removes a tag from the list and returns the new head of the list/sub-list.
|
public static final long serialVersionUID
public final short tag
public final Object value
protected SAMBinaryTagAndValue next
public SAMBinaryTagAndValue(short tag, Object value)
tag
- tagname (in binary form) for this attributevalue
- value for this attribute (must be of a type that implements Serializable
or else serialization will fail). Cannot be null.protected static boolean isAllowedAttributeValue(Object value)
public SAMBinaryTagAndValue copy()
public SAMBinaryTagAndValue deepCopy()
protected Object cloneValue()
public SAMBinaryTagAndValue getNext()
public SAMBinaryTagAndValue insert(SAMBinaryTagAndValue attr)
public SAMBinaryTagAndValue remove(short tag)
public SAMBinaryTagAndValue find(short tag)
public boolean isUnsignedArray()