Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.commons.collections.collection.AbstractCollectionDecorator
org.apache.commons.collections.buffer.AbstractBufferDecorator
org.apache.commons.collections.buffer.UnmodifiableBuffer
public final class UnmodifiableBuffer
extends AbstractBufferDecorator
implements Unmodifiable, Serializable
Buffer
to ensure it can't be altered.
This class is Serializable from Commons Collections 3.1.
Field Summary |
Fields inherited from class org.apache.commons.collections.collection.AbstractCollectionDecorator | |
collection |
Method Summary | |
boolean |
|
boolean |
|
void |
|
static Buffer | |
Iterator |
|
Object |
|
boolean |
|
boolean |
|
boolean |
|
Methods inherited from class org.apache.commons.collections.buffer.AbstractBufferDecorator | |
get , getBuffer , remove |
Methods inherited from class org.apache.commons.collections.collection.AbstractCollectionDecorator | |
add , addAll , clear , contains , containsAll , equals , getCollection , hashCode , isEmpty , iterator , remove , removeAll , retainAll , size , toArray , toArray , toString |
public boolean addAll(Collection coll)
- Overrides:
- addAll in interface AbstractCollectionDecorator
public static Buffer decorate(Buffer buffer)
Factory method to create an unmodifiable buffer. If the buffer passed in is already unmodifiable, it is returned.
- Parameters:
buffer
- the buffer to decorate, must not be null
- Returns:
- an unmodifiable Buffer
public Object remove()
Gets and removes the next object from the buffer.
- Overrides:
- remove in interface AbstractBufferDecorator
- Returns:
- the next object in the buffer, which is also removed
public boolean removeAll(Collection coll)
- Overrides:
- removeAll in interface AbstractCollectionDecorator
public boolean retainAll(Collection coll)
- Overrides:
- retainAll in interface AbstractCollectionDecorator