|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.collections.collection.AbstractCollectionDecorator
org.apache.commons.collections.buffer.AbstractBufferDecorator
Decorates another Buffer
to provide additional behaviour.
Methods are forwarded directly to the decorated buffer.
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 buffer)
Constructor that wraps (not copies). |
Method Summary | |
Object |
get()
Gets the next object from the buffer without removing it. |
protected Buffer |
getBuffer()
Gets the buffer being decorated. |
Object |
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 buffer)
buffer
- the buffer to decorate, must not be null
IllegalArgumentException
- if list is nullMethod Detail |
protected Buffer getBuffer()
public Object get()
Buffer
get
in interface Buffer
public Object remove()
Buffer
remove
in interface Buffer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |