E - the type of the elements in the bufferpublic abstract class AbstractBufferDecorator<E> extends AbstractCollectionDecorator<E> implements Buffer<E>
Buffer to provide additional behaviour.
Methods are forwarded directly to the decorated buffer.
collection| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBufferDecorator()
Constructor only used in deserialization, do not use otherwise.
|
protected |
AbstractBufferDecorator(Buffer<E> buffer)
Constructor that wraps (not copies).
|
| Modifier and Type | Method and Description |
|---|---|
protected Buffer<E> |
decorated()
Gets the buffer being decorated.
|
E |
get()
Gets the next object from the buffer without removing it.
|
E |
remove()
Gets and removes the next object from the buffer.
|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toStringprotected AbstractBufferDecorator()
protected AbstractBufferDecorator(Buffer<E> buffer)
buffer - the buffer to decorate, must not be nullIllegalArgumentException - if list is nullCopyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.