|
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
com.tangosol.util.AbstractByteSequence.AggregateByteSequence
public static class AbstractByteSequence.AggregateByteSequence
A naive ByteSequence that glues two ByteSequence instances together.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.tangosol.util.AbstractByteSequence |
---|
AbstractByteSequence.AggregateByteSequence, AbstractByteSequence.PartialByteSequence |
Constructor Summary | |
---|---|
AbstractByteSequence.AggregateByteSequence(ByteSequence seqFirst, ByteSequence seqSecond) Construct an AggregateByteSequence from two ByteSequence objects. |
Method Summary | |
---|---|
byte |
byteAt(int of) Determine the n-th byte of the byte sequence. |
int |
length() Determine the number of bytes of data represented by this ByteSequence. |
ByteSequence |
subSequence(int ofStart, int ofEnd) Returns a new ByteSequence that is a subsequence of this sequence. |
Methods inherited from class com.tangosol.util.AbstractByteSequence |
---|
equals, hashCode, toBinary, toString |
Constructor Detail |
---|
public AbstractByteSequence.AggregateByteSequence(ByteSequence seqFirst, ByteSequence seqSecond)
seqFirst
- the first ByteSequenceseqSecond
- the second ByteSequenceMethod Detail |
---|
public int length()
public byte byteAt(int of)
of
- the zero-based byte offset within the sequence of bytes (0 <= of < ByteSequence.length()
)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
subSequence
in class AbstractByteSequence
ofStart
- the start index, inclusiveofEnd
- the end index, exclusive
|
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 |