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.
collection| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Object object) |
boolean |
addAll(Collection coll) |
void |
clear() |
static Buffer |
decorate(Buffer buffer)
Factory method to create an unmodifiable buffer.
|
Iterator |
iterator() |
Object |
remove()
Gets and removes the next object from the buffer.
|
boolean |
remove(Object object) |
boolean |
removeAll(Collection coll) |
boolean |
retainAll(Collection coll) |
get, getBuffercontains, containsAll, equals, getCollection, hashCode, isEmpty, size, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontains, containsAll, equals, hashCode, isEmpty, size, toArray, toArraypublic static Buffer decorate(Buffer buffer)
If the buffer passed in is already unmodifiable, it is returned.
buffer - the buffer to decorate, must not be nullIllegalArgumentException - if buffer is nullpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in class AbstractCollectionDecoratorpublic boolean add(Object object)
add in interface Collectionadd in class AbstractCollectionDecoratorpublic boolean addAll(Collection coll)
addAll in interface CollectionaddAll in class AbstractCollectionDecoratorpublic void clear()
clear in interface Collectionclear in class AbstractCollectionDecoratorpublic boolean remove(Object object)
remove in interface Collectionremove in class AbstractCollectionDecoratorpublic boolean removeAll(Collection coll)
removeAll in interface CollectionremoveAll in class AbstractCollectionDecoratorpublic boolean retainAll(Collection coll)
retainAll in interface CollectionretainAll in class AbstractCollectionDecoratorCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.