|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
E
- the type of elements in the streampublic interface PuttableStream<E>
Provides protocol for a stream that allows objects to be added to its past sequence values.
Method Summary | |
---|---|
void |
nextPut(E newElement)
Writes the given new element to this stream. |
void |
nextPutAll(Collection<? extends E> newElements)
Enumerates the given collection, adding each new element to this stream. |
Method Detail |
---|
void nextPut(E newElement)
newElement
to the past sequence values. If the future sequence
values is not empty, removes its first object.
newElement
- the element to add
NoSuchElementException
- if there is no next element to replacevoid nextPutAll(Collection<? extends E> newElements)
newElements
with
forEachDo
and adding each element to
this stream with nextPut
.
newElements
- the elements to add
NullPointerException
- if newElements
is null
NoSuchElementException
- if the put overruns the number of
elements in the stream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |