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_CHARLATIN1, LATIN1_ZERO| Modifier | Constructor and Description |
|---|---|
|
BookmarkRangeField()
Constructs a new empty BookmarkRangeField.
|
protected |
BookmarkRangeField(byte[] buffer,
int position,
int length)
Constructs a new BookmarkRangeField with the provided buffer,
position, and 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()
Override base class's copy() method appropriately, so we don't inadvertently mix
BookmarkRangeFields and Fields up -- they have different hashCode implementations.
|
void |
copyFrom(Field f)
Provides a way to make this object a duplicate of f if f
represents a valid bookmark range.
|
boolean |
equals(java.lang.Object object_)
Indicates whether some other object is "equal to" this one.
|
protected int |
getConversionBufInitialSize()
Overrides the base classes' initial default size for the byte and
char conversion buffers used by this instance.
|
BookmarkField |
getEnd()
Gets the end bookmark of the range.
|
BookmarkField |
getStart()
Gets the start bookmark of the range.
|
int |
hashCode()
Computes the hash code for this BookmarkRangeField.
|
boolean |
isEndExclusive()
Checks if the bookmark range ends exclusively (exclusive range).
|
boolean |
isEndInclusive()
Checks if the bookmark range ends inclusively (inclusive range).
|
boolean |
isStartExclusive()
Checks if the bookmark range starts exclusively (exclusive range).
|
boolean |
isStartInclusive()
Checks if the bookmark range starts inclusively (inclusive range).
|
boolean |
isValid()
Checks if the bookmark range is valid.
|
void |
replaceStart(Field start_)
Replaces the start bookmark of the range.
|
void |
replaceStart(Field start_,
boolean makeExclusive)
Replaces the start bookmark of the range.
|
getPublisherId, getSequenceNumber, isBookmarkList, isRange, isTimestamp, parseBookmarkList, unsignedLongLess, unsignedLongLessEqualgetValue, getValue, getValue, setValue, setValue, setValueprotected BookmarkRangeField(byte[] buffer,
int position,
int length)
buffer - The buffer containing the bookmark range.position - The starting position of the bookmark range within the bufferlength - The length of the bookmark range.public BookmarkRangeField()
protected int getConversionBufInitialSize()
getConversionBufInitialSize in class BookmarkFieldpublic void copyFrom(Field f)
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_)
start_ - The new start bookmark.public void replaceStart(Field start_, boolean makeExclusive)
start_ - The new start bookmark.makeExclusive - Indicates whether the new start should be exclusive.public BookmarkRangeField clone()
clone in class BookmarkFieldpublic BookmarkRangeField copy()
copy in class BookmarkFieldpublic int hashCode()
hashCode in class BookmarkFieldpublic boolean equals(java.lang.Object object_)
equals in class BookmarkFieldobject_ - The object to compare with.