Uses of Interface
org.apache.commons.collections.Buffer
-
Packages that use Buffer Package Description org.apache.commons.collections This package contains the interfaces and utilities shared across all the subpackages of this component.org.apache.commons.collections.buffer This package contains implementations of theBuffer
interface. -
-
Uses of Buffer in org.apache.commons.collections
Classes in org.apache.commons.collections that implement Buffer Modifier and Type Class Description class
ArrayStack
An implementation of theStack
API that is based on anArrayList
instead of aVector
, so it is not synchronized to protect against multi-threaded access.class
BinaryHeap
Deprecated.Replaced by PriorityBuffer in buffer subpackage.class
BoundedFifoBuffer
Deprecated.Moved to buffer subpackage.class
UnboundedFifoBuffer
Deprecated.Moved to buffer subpackage.Fields in org.apache.commons.collections declared as Buffer Modifier and Type Field Description static Buffer
BufferUtils. EMPTY_BUFFER
An empty unmodifiable buffer.Methods in org.apache.commons.collections that return Buffer Modifier and Type Method Description static Buffer
BufferUtils. blockingBuffer(Buffer buffer)
static Buffer
BufferUtils. blockingBuffer(Buffer buffer, long timeoutMillis)
static Buffer
BufferUtils. boundedBuffer(Buffer buffer, int maximumSize)
Returns a synchronized buffer backed by the given buffer that will block onCollection.add(Object)
andCollection.addAll(java.util.Collection)
until enough object(s) are removed from the buffer to allow the object(s) to be added and still maintain the maximum size.static Buffer
BufferUtils. boundedBuffer(Buffer buffer, int maximumSize, long timeoutMillis)
Returns a synchronized buffer backed by the given buffer that will block onCollection.add(Object)
andCollection.addAll(java.util.Collection)
until enough object(s) are removed from the buffer to allow the object(s) to be added and still maintain the maximum size or the timeout expires.static Buffer
BufferUtils. predicatedBuffer(Buffer buffer, Predicate predicate)
Returns a predicated (validating) buffer backed by the given buffer.static Buffer
BufferUtils. synchronizedBuffer(Buffer buffer)
Returns a synchronized buffer backed by the given buffer.static Buffer
BufferUtils. transformedBuffer(Buffer buffer, Transformer transformer)
Returns a transformed buffer backed by the given buffer.static Buffer
BufferUtils. typedBuffer(Buffer buffer, Class type)
Returns a typed buffer backed by the given buffer.static Buffer
BufferUtils. unmodifiableBuffer(Buffer buffer)
Returns an unmodifiable buffer backed by the given buffer.Methods in org.apache.commons.collections with parameters of type Buffer Modifier and Type Method Description static Buffer
BufferUtils. blockingBuffer(Buffer buffer)
static Buffer
BufferUtils. blockingBuffer(Buffer buffer, long timeoutMillis)
static Buffer
BufferUtils. boundedBuffer(Buffer buffer, int maximumSize)
Returns a synchronized buffer backed by the given buffer that will block onCollection.add(Object)
andCollection.addAll(java.util.Collection)
until enough object(s) are removed from the buffer to allow the object(s) to be added and still maintain the maximum size.static Buffer
BufferUtils. boundedBuffer(Buffer buffer, int maximumSize, long timeoutMillis)
Returns a synchronized buffer backed by the given buffer that will block onCollection.add(Object)
andCollection.addAll(java.util.Collection)
until enough object(s) are removed from the buffer to allow the object(s) to be added and still maintain the maximum size or the timeout expires.static Buffer
BufferUtils. predicatedBuffer(Buffer buffer, Predicate predicate)
Returns a predicated (validating) buffer backed by the given buffer.static Buffer
BufferUtils. synchronizedBuffer(Buffer buffer)
Returns a synchronized buffer backed by the given buffer.static Buffer
BufferUtils. transformedBuffer(Buffer buffer, Transformer transformer)
Returns a transformed buffer backed by the given buffer.static Buffer
BufferUtils. typedBuffer(Buffer buffer, Class type)
Returns a typed buffer backed by the given buffer.static Buffer
BufferUtils. unmodifiableBuffer(Buffer buffer)
Returns an unmodifiable buffer backed by the given buffer. -
Uses of Buffer in org.apache.commons.collections.buffer
Classes in org.apache.commons.collections.buffer that implement Buffer Modifier and Type Class Description class
AbstractBufferDecorator
Decorates anotherBuffer
to provide additional behaviour.class
BlockingBuffer
Decorates anotherBuffer
to makeBlockingBuffer.get()
andBlockingBuffer.remove()
block when theBuffer
is empty.class
BoundedBuffer
Decorates anotherBuffer
to ensure a fixed maximum size.class
BoundedFifoBuffer
The BoundedFifoBuffer is a very efficient implementation ofBuffer
that is of a fixed size.class
CircularFifoBuffer
CircularFifoBuffer is a first in first out buffer with a fixed size that replaces its oldest element if full.class
PredicatedBuffer
Decorates anotherBuffer
to validate that additions match a specified predicate.class
PriorityBuffer
Binary heap implementation ofBuffer
that provides for removal based onComparator
ordering.class
SynchronizedBuffer
Decorates anotherBuffer
to synchronize its behaviour for a multi-threaded environment.class
TransformedBuffer
Decorates anotherBuffer
to transform objects that are added.class
UnboundedFifoBuffer
UnboundedFifoBuffer is a very efficient implementation ofBuffer
that can grow to any size.class
UnmodifiableBuffer
Decorates anotherBuffer
to ensure it can't be altered.Methods in org.apache.commons.collections.buffer that return Buffer Modifier and Type Method Description static Buffer
BlockingBuffer. decorate(Buffer buffer)
Factory method to create a blocking buffer.static Buffer
BlockingBuffer. decorate(Buffer buffer, long timeoutMillis)
Factory method to create a blocking buffer with a timeout value.static Buffer
PredicatedBuffer. decorate(Buffer buffer, Predicate predicate)
Factory method to create a predicated (validating) buffer.static Buffer
SynchronizedBuffer. decorate(Buffer buffer)
Factory method to create a synchronized buffer.static Buffer
TransformedBuffer. decorate(Buffer buffer, Transformer transformer)
Factory method to create a transforming buffer.static Buffer
TypedBuffer. decorate(Buffer buffer, Class type)
Factory method to create a typed list.static Buffer
UnmodifiableBuffer. decorate(Buffer buffer)
Factory method to create an unmodifiable buffer.protected Buffer
AbstractBufferDecorator. getBuffer()
Gets the buffer being decorated.protected Buffer
PredicatedBuffer. getBuffer()
Gets the buffer being decorated.protected Buffer
SynchronizedBuffer. getBuffer()
Gets the buffer being decorated.protected Buffer
TransformedBuffer. getBuffer()
Gets the decorated buffer.Methods in org.apache.commons.collections.buffer with parameters of type Buffer Modifier and Type Method Description static Buffer
BlockingBuffer. decorate(Buffer buffer)
Factory method to create a blocking buffer.static Buffer
BlockingBuffer. decorate(Buffer buffer, long timeoutMillis)
Factory method to create a blocking buffer with a timeout value.static BoundedBuffer
BoundedBuffer. decorate(Buffer buffer, int maximumSize)
Factory method to create a bounded buffer.static BoundedBuffer
BoundedBuffer. decorate(Buffer buffer, int maximumSize, long timeout)
Factory method to create a bounded buffer that blocks for a maximum amount of time.static Buffer
PredicatedBuffer. decorate(Buffer buffer, Predicate predicate)
Factory method to create a predicated (validating) buffer.static Buffer
SynchronizedBuffer. decorate(Buffer buffer)
Factory method to create a synchronized buffer.static Buffer
TransformedBuffer. decorate(Buffer buffer, Transformer transformer)
Factory method to create a transforming buffer.static Buffer
TypedBuffer. decorate(Buffer buffer, Class type)
Factory method to create a typed list.static Buffer
UnmodifiableBuffer. decorate(Buffer buffer)
Factory method to create an unmodifiable buffer.Constructors in org.apache.commons.collections.buffer with parameters of type Buffer Constructor Description AbstractBufferDecorator(Buffer buffer)
Constructor that wraps (not copies).BlockingBuffer(Buffer buffer)
Constructor that wraps (not copies).BlockingBuffer(Buffer buffer, long timeoutMillis)
Constructor that wraps (not copies).BoundedBuffer(Buffer buffer, int maximumSize, long timeout)
Constructor that wraps (not copies) another buffer, making it bounded waiting only up to a maximum amount of time.PredicatedBuffer(Buffer buffer, Predicate predicate)
Constructor that wraps (not copies).SynchronizedBuffer(Buffer buffer)
Constructor that wraps (not copies).SynchronizedBuffer(Buffer buffer, Object lock)
Constructor that wraps (not copies).TransformedBuffer(Buffer buffer, Transformer transformer)
Constructor that wraps (not copies).
-