java.lang.Iterable
, java.util.Collection
, Buffer
UnmodifiableBuffer
public abstract class AbstractBufferDecorator extends AbstractCollectionDecorator implements Buffer
Buffer
to provide additional behaviour.
Methods are forwarded directly to the decorated buffer.
collection
Modifier | Constructor | Description |
---|---|---|
protected |
AbstractBufferDecorator() |
Constructor only used in deserialization, do not use otherwise.
|
protected |
AbstractBufferDecorator(Buffer buffer) |
Constructor that wraps (not copies).
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
get() |
Gets the next object from the buffer without removing it.
|
protected Buffer |
getBuffer() |
Gets the buffer being decorated.
|
java.lang.Object |
remove() |
Gets and removes the next object from the buffer.
|
add, addAll, clear, contains, containsAll, equals, getCollection, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
protected AbstractBufferDecorator()
protected AbstractBufferDecorator(Buffer buffer)
buffer
- the buffer to decorate, must not be nulljava.lang.IllegalArgumentException
- if list is nullCopyright © 2001-2017 Apache Software Foundation. All Rights Reserved.