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 theBufferinterface. -
-
Uses of Buffer in org.apache.commons.collections
Classes in org.apache.commons.collections that implement Buffer Modifier and Type Class Description classArrayStackAn implementation of theStackAPI that is based on anArrayListinstead of aVector, so it is not synchronized to protect against multi-threaded access.classBinaryHeapDeprecated.Replaced by PriorityBuffer in buffer subpackage.classBoundedFifoBufferDeprecated.Moved to buffer subpackage.classUnboundedFifoBufferDeprecated.Moved to buffer subpackage.Fields in org.apache.commons.collections declared as Buffer Modifier and Type Field Description static BufferBufferUtils. EMPTY_BUFFERAn empty unmodifiable buffer.Methods in org.apache.commons.collections that return Buffer Modifier and Type Method Description static BufferBufferUtils. blockingBuffer(Buffer buffer)static BufferBufferUtils. blockingBuffer(Buffer buffer, long timeoutMillis)static BufferBufferUtils. 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 BufferBufferUtils. 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 BufferBufferUtils. predicatedBuffer(Buffer buffer, Predicate predicate)Returns a predicated (validating) buffer backed by the given buffer.static BufferBufferUtils. synchronizedBuffer(Buffer buffer)Returns a synchronized buffer backed by the given buffer.static BufferBufferUtils. transformedBuffer(Buffer buffer, Transformer transformer)Returns a transformed buffer backed by the given buffer.static BufferBufferUtils. typedBuffer(Buffer buffer, java.lang.Class type)Returns a typed buffer backed by the given buffer.static BufferBufferUtils. 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 BufferBufferUtils. blockingBuffer(Buffer buffer)static BufferBufferUtils. blockingBuffer(Buffer buffer, long timeoutMillis)static BufferBufferUtils. 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 BufferBufferUtils. 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 BufferBufferUtils. predicatedBuffer(Buffer buffer, Predicate predicate)Returns a predicated (validating) buffer backed by the given buffer.static BufferBufferUtils. synchronizedBuffer(Buffer buffer)Returns a synchronized buffer backed by the given buffer.static BufferBufferUtils. transformedBuffer(Buffer buffer, Transformer transformer)Returns a transformed buffer backed by the given buffer.static BufferBufferUtils. typedBuffer(Buffer buffer, java.lang.Class type)Returns a typed buffer backed by the given buffer.static BufferBufferUtils. 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 classAbstractBufferDecoratorDecorates anotherBufferto provide additional behaviour.classBlockingBufferDecorates anotherBufferto makeBlockingBuffer.get()andBlockingBuffer.remove()block when theBufferis empty.classBoundedBufferDecorates anotherBufferto ensure a fixed maximum size.classBoundedFifoBufferThe BoundedFifoBuffer is a very efficient implementation ofBufferthat is of a fixed size.classCircularFifoBufferCircularFifoBuffer is a first in first out buffer with a fixed size that replaces its oldest element if full.classPredicatedBufferDecorates anotherBufferto validate that additions match a specified predicate.classPriorityBufferBinary heap implementation ofBufferthat provides for removal based onComparatorordering.classSynchronizedBufferDecorates anotherBufferto synchronize its behaviour for a multi-threaded environment.classTransformedBufferDecorates anotherBufferto transform objects that are added.classUnboundedFifoBufferUnboundedFifoBuffer is a very efficient implementation ofBufferthat can grow to any size.classUnmodifiableBufferDecorates anotherBufferto ensure it can't be altered.Methods in org.apache.commons.collections.buffer that return Buffer Modifier and Type Method Description static BufferBlockingBuffer. decorate(Buffer buffer)Factory method to create a blocking buffer.static BufferBlockingBuffer. decorate(Buffer buffer, long timeoutMillis)Factory method to create a blocking buffer with a timeout value.static BufferPredicatedBuffer. decorate(Buffer buffer, Predicate predicate)Factory method to create a predicated (validating) buffer.static BufferSynchronizedBuffer. decorate(Buffer buffer)Factory method to create a synchronized buffer.static BufferTransformedBuffer. decorate(Buffer buffer, Transformer transformer)Factory method to create a transforming buffer.static BufferTypedBuffer. decorate(Buffer buffer, java.lang.Class type)Factory method to create a typed list.static BufferUnmodifiableBuffer. decorate(Buffer buffer)Factory method to create an unmodifiable buffer.protected BufferAbstractBufferDecorator. getBuffer()Gets the buffer being decorated.protected BufferPredicatedBuffer. getBuffer()Gets the buffer being decorated.protected BufferSynchronizedBuffer. getBuffer()Gets the buffer being decorated.protected BufferTransformedBuffer. getBuffer()Gets the decorated buffer.Methods in org.apache.commons.collections.buffer with parameters of type Buffer Modifier and Type Method Description static BufferBlockingBuffer. decorate(Buffer buffer)Factory method to create a blocking buffer.static BufferBlockingBuffer. decorate(Buffer buffer, long timeoutMillis)Factory method to create a blocking buffer with a timeout value.static BoundedBufferBoundedBuffer. decorate(Buffer buffer, int maximumSize)Factory method to create a bounded buffer.static BoundedBufferBoundedBuffer. decorate(Buffer buffer, int maximumSize, long timeout)Factory method to create a bounded buffer that blocks for a maximum amount of time.static BufferPredicatedBuffer. decorate(Buffer buffer, Predicate predicate)Factory method to create a predicated (validating) buffer.static BufferSynchronizedBuffer. decorate(Buffer buffer)Factory method to create a synchronized buffer.static BufferTransformedBuffer. decorate(Buffer buffer, Transformer transformer)Factory method to create a transforming buffer.static BufferTypedBuffer. decorate(Buffer buffer, java.lang.Class type)Factory method to create a typed list.static BufferUnmodifiableBuffer. 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, java.lang.Object lock)Constructor that wraps (not copies).TransformedBuffer(Buffer buffer, Transformer transformer)Constructor that wraps (not copies).UnmodifiableBuffer(Buffer buffer)Constructor that wraps (not copies).
-