org.apache.commons.collections.buffer
Class UnmodifiableBuffer
- Serializable, Buffer, Collection, Unmodifiable
public final class UnmodifiableBuffer
Decorates another
Buffer to ensure it can't be altered.
This class is Serializable from Commons Collections 3.1.
Version:
- Stephen Colebourne
- Commons Collections 3.0
add, addAll, clear, contains, containsAll, equals, getCollection, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString |
decorate
public static Buffer decorate(Buffer buffer)
Factory method to create an unmodifiable buffer.
If the buffer passed in is already unmodifiable, it is returned.
buffer - the buffer to decorate, must not be null
- an unmodifiable Buffer
remove
public Object remove()
Gets and removes the next object from the buffer.
- remove in interface Buffer
- remove in interface AbstractBufferDecorator
- the next object in the buffer, which is also removed
Copyright © 2001-2005 Apache Software Foundation. All Rights Reserved.