|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.AbstractByteSequence
public abstract class AbstractByteSequence
A simple base class for ByteSequence implementations.
Nested Class Summary | |
---|---|
static class |
AbstractByteSequence.AggregateByteSequence A naive ByteSequence that glues two ByteSequence instances together. |
static class |
AbstractByteSequence.PartialByteSequence A naive ByteSequence that represents a portion of another ByteSequence. |
Constructor Summary | |
---|---|
AbstractByteSequence() |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
ByteSequence |
subSequence(int ofStart, int ofEnd) Returns a new ByteSequence that is a subsequence of this sequence. |
Binary |
toBinary() Returns a Binary object that holds the contents of this ByteSequence. |
java.lang.String |
toString() |
Methods inherited from interface com.tangosol.util.ByteSequence |
---|
byteAt, length |
Constructor Detail |
---|
public AbstractByteSequence()
Method Detail |
---|
public ByteSequence subSequence(int ofStart, int ofEnd)
ByteSequence
that is a subsequence of this sequence. The subsequence starts with the byte
value at the specified index and ends with the byte
value at index ofEnd - 1. The length (in byte
s) of the returned sequence is ofEnd - ofStart, so if ofStart == ofEnd then an empty sequence is returned.subSequence
in interface ByteSequence
ofStart
- the start index, inclusiveofEnd
- the end index, exclusivepublic Binary toBinary()
toBinary
in interface ByteSequence
public int hashCode()
public boolean equals(java.lang.Object o)
public java.lang.String toString()
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |