public abstract class

AbstractBufferDecorator

extends AbstractCollectionDecorator
implements Buffer
java.lang.Object
   ↳ org.apache.commons.collections.collection.AbstractCollectionDecorator
     ↳ org.apache.commons.collections.buffer.AbstractBufferDecorator
Known Direct Subclasses

Class Overview

Decorates another Buffer to provide additional behaviour.

Methods are forwarded directly to the decorated buffer.

Summary

[Expand]
Inherited Fields
From class org.apache.commons.collections.collection.AbstractCollectionDecorator
Protected Constructors
AbstractBufferDecorator()
Constructor only used in deserialization, do not use otherwise.
AbstractBufferDecorator(Buffer buffer)
Constructor that wraps (not copies).
Public Methods
Object get()
Gets the next object from the buffer without removing it.
Object remove()
Gets and removes the next object from the buffer.
Protected Methods
Buffer getBuffer()
Gets the buffer being decorated.
[Expand]
Inherited Methods
From class org.apache.commons.collections.collection.AbstractCollectionDecorator
From class java.lang.Object
From interface java.lang.Iterable
From interface java.util.Collection
From interface org.apache.commons.collections.Buffer

Protected Constructors

protected AbstractBufferDecorator ()

Constructor only used in deserialization, do not use otherwise.

protected AbstractBufferDecorator (Buffer buffer)

Constructor that wraps (not copies).

Parameters
buffer the buffer to decorate, must not be null
Throws
IllegalArgumentException if list is null

Public Methods

public Object get ()

Gets the next object from the buffer without removing it.

Returns
  • the next object in the buffer, which is not removed

public Object remove ()

Gets and removes the next object from the buffer.

Returns
  • the next object in the buffer, which is also removed

Protected Methods

protected Buffer getBuffer ()

Gets the buffer being decorated.

Returns
  • the decorated buffer