|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaggregate.CollectionStream<E,S>
E - the type of elements in the streamS - the type of the stream's backing storepublic abstract class CollectionStream<E,S extends ReadOnlySequence<E>>
Represents a stream that has a ReadOnlySequence as its stream backing
store.
| Method Summary | |
|---|---|
boolean |
atEnd()
Tells whether this stream is at the end of its values. |
void |
close()
Disassociates this stream from its backing store. |
S |
contents()
Answers a sequence containing the complete contents of this stream. Answers this stream's backing store. |
boolean |
isEmpty()
Tells whether there are any sequence values in this stream. |
int |
position()
Answers the current position of this stream. |
void |
position(int amount)
Sets the current position in this stream. |
void |
reset()
Sets the position of this stream to be at the beginning of the stream of values. |
void |
setToEnd()
Sets the position of this stream to be at the end of the stream of values. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean atEnd()
atEnd in interface Stream<E,S extends ReadOnlySequence<E>>true if this stream has no future sequence values available for
reading; false otherwise.public S contents()
size of the collection is the sum of
the sizes of the past and future sequence values.
Answers this stream's backing store.
contents in interface Stream<E,S extends ReadOnlySequence<E>>public void close()
close in interface Stream<E,S extends ReadOnlySequence<E>>public boolean isEmpty()
isEmpty in interface Stream<E,S extends ReadOnlySequence<E>>true if there are any sequence values in this streampublic int position()
position in interface Stream<E,S extends ReadOnlySequence<E>>public void position(int amount)
amount,
move objects in sequence from the front of the future sequence values to the back
of the past sequence values until the number of past sequence values is equal to
amount.
If the number of past sequence values is greater than amount,
move objects in sequence from the back of the past sequence values to the front
of the future sequence values until the number past sequence values is equal to
amount.
If the number of past sequence values is equal to amount, no action is
taken.
position in interface Stream<E,S extends ReadOnlySequence<E>>amount - the new positionpublic void reset()
reset in interface Stream<E,S extends ReadOnlySequence<E>>public void setToEnd()
setToEnd in interface Stream<E,S extends ReadOnlySequence<E>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||