public class BookmarkRangeField extends BookmarkField
Message
consisting of the bookmark.
This is the AMPS Bookmark for the Message.c, MAX_BOOKMARK_LENGTH, MAX_TIMESTAMP_LENGTH, MIN_TIMESTAMP_LENGTH, SEPARATOR_CHAR
LATIN1, LATIN1_ZERO
Modifier | Constructor and Description |
---|---|
|
BookmarkRangeField() |
protected |
BookmarkRangeField(byte[] buffer,
int position,
int length) |
Modifier and Type | Method and Description |
---|---|
BookmarkRangeField |
clone()
Provides a way to duplicate this object and retain its specific type (and hashcode() implementation).
|
BookmarkRangeField |
copy()
Constructs a new Field and sets its value to a deep copy of this instance.
|
void |
copyFrom(Field f)
Sets the value of this instance to a deep copy of the value of the specified field.
|
boolean |
equals(java.lang.Object object_)
Default implementation for
Object.equals(java.lang.Object) for a Field. |
protected int |
getConversionBufInitialSize()
Overrides the base classes' initial default size for the byte and
char conversion buffers used by this instance.
|
BookmarkField |
getEnd() |
BookmarkField |
getStart() |
int |
hashCode()
Default implementation of
Object.hashCode() for a Field. |
boolean |
isEndExclusive() |
boolean |
isEndInclusive() |
boolean |
isStartExclusive() |
boolean |
isStartInclusive() |
boolean |
isValid() |
void |
replaceStart(Field start_) |
void |
replaceStart(Field start_,
boolean makeExclusive) |
getPublisherId, getSequenceNumber, isRange, isTimestamp
getValue, getValue, getValue, setValue, setValue, setValue
protected BookmarkRangeField(byte[] buffer, int position, int length)
public BookmarkRangeField()
protected int getConversionBufInitialSize()
getConversionBufInitialSize
in class BookmarkField
public void copyFrom(Field f)
Field
public boolean isValid()
public BookmarkField getStart()
public BookmarkField getEnd()
public boolean isStartInclusive()
public boolean isEndInclusive()
public boolean isStartExclusive()
public boolean isEndExclusive()
public void replaceStart(Field start_)
public void replaceStart(Field start_, boolean makeExclusive)
public BookmarkRangeField clone()
clone
in class BookmarkField
public BookmarkRangeField copy()
Field
copy
in class BookmarkField
public int hashCode()
Field
Object.hashCode()
for a Field.hashCode
in class BookmarkField
public boolean equals(java.lang.Object object_)
Field
Object.equals(java.lang.Object)
for a Field. For two Fields to be considered equal,
their values must have the same length and all bytes in the value must be equal.equals
in class BookmarkField
object_
- The object to compare this with.