|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.collections.collection.AbstractCollectionDecorator<E> org.apache.commons.collections.buffer.AbstractBufferDecorator<E>
public abstract class AbstractBufferDecorator<E>
Decorates another Buffer
to provide additional behaviour.
Field Summary |
---|
Fields inherited from class org.apache.commons.collections.collection.AbstractCollectionDecorator |
---|
collection |
Constructor Summary | |
---|---|
protected |
AbstractBufferDecorator()
Constructor only used in deserialization, do not use otherwise. |
protected |
AbstractBufferDecorator(Buffer<E> buffer)
Constructor that wraps (not copies). |
Method Summary | |
---|---|
E |
get()
Gets the next object from the buffer without removing it. |
protected Buffer<E> |
getBuffer()
Gets the buffer being decorated. |
E |
remove()
Gets and removes the next object from the buffer. |
Methods inherited from class org.apache.commons.collections.collection.AbstractCollectionDecorator |
---|
add, addAll, clear, contains, containsAll, equals, getCollection, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Collection |
---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Constructor Detail |
---|
protected AbstractBufferDecorator()
protected AbstractBufferDecorator(Buffer<E> buffer)
buffer
- the buffer to decorate, must not be null
IllegalArgumentException
- if list is nullMethod Detail |
---|
protected Buffer<E> getBuffer()
public E get()
Buffer
get
in interface Buffer<E>
public E remove()
Buffer
remove
in interface Buffer<E>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |