Uses of Interface
org.apache.commons.collections.Buffer
Packages that use Buffer
Package
Description
This package contains the interfaces and utilities shared across all the subpackages of this component.
This package contains implementations of the
Buffer interface.-
Uses of Buffer in org.apache.commons.collections
Classes in org.apache.commons.collections that implement BufferModifier and TypeClassDescriptionclassAn implementation of theStackAPI that is based on anArrayListinstead of aVector, so it is not synchronized to protect against multi-threaded access.final classDeprecated.Replaced by PriorityBuffer in buffer subpackage.classDeprecated.Moved to buffer subpackage.classDeprecated.Moved to buffer subpackage.Fields in org.apache.commons.collections declared as BufferModifier and TypeFieldDescriptionstatic final BufferBufferUtils.EMPTY_BUFFERAn empty unmodifiable buffer.Methods in org.apache.commons.collections that return BufferModifier and TypeMethodDescriptionstatic 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, 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 BufferModifier and TypeMethodDescriptionstatic 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, 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 BufferModifier and TypeClassDescriptionclassDecorates anotherBufferto provide additional behaviour.classDecorates anotherBufferto makeBlockingBuffer.get()andBlockingBuffer.remove()block when theBufferis empty.classDecorates anotherBufferto ensure a fixed maximum size.classThe BoundedFifoBuffer is a very efficient implementation ofBufferthat is of a fixed size.classCircularFifoBuffer is a first in first out buffer with a fixed size that replaces its oldest element if full.classDecorates anotherBufferto validate that additions match a specified predicate.classBinary heap implementation ofBufferthat provides for removal based onComparatorordering.classDecorates anotherBufferto synchronize its behaviour for a multi-threaded environment.classDecorates anotherBufferto transform objects that are added.classUnboundedFifoBuffer is a very efficient implementation ofBufferthat can grow to any size.final classDecorates anotherBufferto ensure it can't be altered.Methods in org.apache.commons.collections.buffer that return BufferModifier and TypeMethodDescriptionstatic BufferFactory method to create a blocking buffer.static BufferFactory method to create a blocking buffer with a timeout value.static BufferFactory method to create a predicated (validating) buffer.static BufferFactory method to create a synchronized buffer.static BufferTransformedBuffer.decorate(Buffer buffer, Transformer transformer) Factory method to create a transforming buffer.static BufferFactory method to create a typed list.static BufferFactory 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 BufferModifier and TypeMethodDescriptionstatic BufferFactory method to create a blocking buffer.static BufferFactory method to create a blocking buffer with a timeout value.static BoundedBufferFactory method to create a bounded buffer.static BoundedBufferFactory method to create a bounded buffer that blocks for a maximum amount of time.static BufferFactory method to create a predicated (validating) buffer.static BufferFactory method to create a synchronized buffer.static BufferTransformedBuffer.decorate(Buffer buffer, Transformer transformer) Factory method to create a transforming buffer.static BufferFactory method to create a typed list.static BufferFactory method to create an unmodifiable buffer.Constructors in org.apache.commons.collections.buffer with parameters of type BufferModifierConstructorDescriptionprotectedAbstractBufferDecorator(Buffer buffer) Constructor that wraps (not copies).protectedBlockingBuffer(Buffer buffer) Constructor that wraps (not copies).protectedBlockingBuffer(Buffer buffer, long timeoutMillis) Constructor that wraps (not copies).protectedBoundedBuffer(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.protectedPredicatedBuffer(Buffer buffer, Predicate predicate) Constructor that wraps (not copies).protectedSynchronizedBuffer(Buffer buffer) Constructor that wraps (not copies).protectedSynchronizedBuffer(Buffer buffer, Object lock) Constructor that wraps (not copies).protectedTransformedBuffer(Buffer buffer, Transformer transformer) Constructor that wraps (not copies).