public class SequencingWidget extends java.lang.Object implements SequencingInfo
SequencingInfo
interface.Modifier | Constructor and Description |
---|---|
protected |
SequencingWidget() |
protected |
SequencingWidget(byte[] marshalledBytes) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes()
Retrieve a byte[] representation of the object.
|
long |
getLower()
Retrieve the lower-bound of the specified range.
|
long |
getMaxSequence()
Retrieve the value of the max-sequence info.
|
long |
getSingleSequence()
Retrieve the single-sequence information.
|
long |
getUpper()
Retrieve the upper-bound of the specified range.
|
boolean |
hasMaxSequence()
Check to see if the max sequence Info has been set.
|
boolean |
hasSequenceRange()
Check to see if a sequence range has been specified.
|
boolean |
hasSingleSequence()
Checks to see if this contains information about a single sequence
|
boolean |
isMutable()
Check to see if the sequencing information is mutable.
|
protected void |
setImmutable() |
void |
setMaxSequence(long maxSequence)
Sets the max-sequence information.
|
void |
setSequenceRange(long lower,
long upper)
Sets the sequence range based on the specified upper and lower-bounds.
|
void |
setSingleSequence(long singleSequence)
Set the single sequence Information.
|
protected SequencingWidget()
protected SequencingWidget(byte[] marshalledBytes) throws java.io.IOException
java.io.IOException
public boolean hasMaxSequence()
SequencingInfo
hasMaxSequence
in interface SequencingInfo
true
, if it contains the max sequence information;
false
otherwise.public void setMaxSequence(long maxSequence)
SequencingInfo
setMaxSequence
in interface SequencingInfo
maxSequence
- The max sequence information.public long getMaxSequence()
SequencingInfo
getMaxSequence
in interface SequencingInfo
public boolean hasSingleSequence()
SequencingInfo
hasSingleSequence
in interface SequencingInfo
true
, if it contains single-sequence information;
false
otherwise.public void setSingleSequence(long singleSequence)
SequencingInfo
setSingleSequence
in interface SequencingInfo
singleSequence
- The single sequence Information.public long getSingleSequence()
SequencingInfo
getSingleSequence
in interface SequencingInfo
public boolean hasSequenceRange()
SequencingInfo
hasSequenceRange
in interface SequencingInfo
true
, if it contains a sequence range information;
false
otherwise.public void setSequenceRange(long lower, long upper)
SequencingInfo
setSequenceRange
in interface SequencingInfo
lower
- The lower-bound of the sequence range.upper
- The upper-bound of the sequence range.public long getLower()
SequencingInfo
getLower
in interface SequencingInfo
public long getUpper()
SequencingInfo
getUpper
in interface SequencingInfo
public boolean isMutable()
SequencingInfo
isMutable
in interface SequencingInfo
true
, if the sequence is mutable; false
otherwise.protected void setImmutable()
public byte[] getBytes() throws java.io.IOException
SequencingInfo
getBytes
in interface SequencingInfo
java.io.IOException
- If there are problems in the marshalling process.