public abstract class AbstractBufferDecorator extends AbstractCollectionDecorator implements Buffer
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 buffer)
Constructor that wraps (not copies).
|
Modifier and Type | Method and Description |
---|---|
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.
|
add, addAll, clear, contains, containsAll, equals, getCollection, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
protected AbstractBufferDecorator()
protected AbstractBufferDecorator(Buffer buffer)
buffer
- the buffer to decorate, must not be nullIllegalArgumentException
- if list is nullCopyright © 2001–2019 The Apache Software Foundation. All rights reserved.