⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
org.apache.commons.collections.buffer

Class AbstractBufferDecorator

java.lang.Object
|
+--org.apache.commons.collections.collection.AbstractCollectionDecorator
   |
   +--org.apache.commons.collections.buffer.AbstractBufferDecorator

All Implemented Interfaces:
Collection, Buffer

Known Direct Subclasses:
UnmodifiableBuffer


public abstract class AbstractBufferDecorator
extends AbstractCollectionDecorator
implements Buffer

Decorates another Buffer to provide additional behaviour.

Methods are forwarded directly to the decorated buffer.

Since:
Commons Collections 3.0
Author:
Stephen Colebourne

Constructor Summary

AbstractBufferDecorator(Buffer buffer)

Constructor that wraps (not copies).

Method Summary

Object

get()

Buffer

getBuffer()

Gets the buffer being decorated.

Object

remove()

Constructor Details

AbstractBufferDecorator

protected AbstractBufferDecorator(Buffer buffer)

Constructor that wraps (not copies).

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

Method Details

get

public Object get()


getBuffer

protected Buffer getBuffer()

Gets the buffer being decorated.

Returns:
the decorated buffer

remove

public Object remove()