|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.apache.commons.collections.collection.AbstractCollectionDecorator
|
+--org.apache.commons.collections.list.AbstractListDecorator
|
+--org.apache.commons.collections.list.AbstractSerializableListDecorator
|
+--org.apache.commons.collections.list.FixedSizeList
Decorates another List to fix the size preventing add/remove.
The add, remove, clear and retain operations are unsupported. The set method is allowed (as it doesn't change the list size).
This class is Serializable from Commons Collections 3.1.
| Method Summary | |
void |
add(int index,
java.lang.Object object)
|
boolean |
add(java.lang.Object object)
|
boolean |
addAll(java.util.Collection coll)
|
boolean |
addAll(int index,
java.util.Collection coll)
|
void |
clear()
|
static java.util.List |
decorate(java.util.List list)
Factory method to create a fixed size list. |
java.lang.Object |
get(int index)
|
int |
indexOf(java.lang.Object object)
|
boolean |
isFull()
Returns true if this collection is full and no new elements can be added. |
java.util.Iterator |
iterator()
|
int |
lastIndexOf(java.lang.Object object)
|
java.util.ListIterator |
listIterator()
|
java.util.ListIterator |
listIterator(int index)
|
int |
maxSize()
Gets the maximum size of the collection (the bound). |
java.lang.Object |
remove(int index)
|
boolean |
remove(java.lang.Object object)
|
boolean |
removeAll(java.util.Collection coll)
|
boolean |
retainAll(java.util.Collection coll)
|
java.lang.Object |
set(int index,
java.lang.Object object)
|
java.util.List |
subList(int fromIndex,
int toIndex)
|
| Methods inherited from class org.apache.commons.collections.collection.AbstractCollectionDecorator |
contains, containsAll, equals, hashCode, isEmpty, size, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
contains, containsAll, equals, hashCode, isEmpty, size, toArray, toArray |
| Methods inherited from interface java.util.List |
contains, containsAll, equals, hashCode, isEmpty, size, toArray, toArray |
| Method Detail |
public static java.util.List decorate(java.util.List list)
list - the list to decorate, must not be null
java.lang.IllegalArgumentException - if list is nullpublic boolean add(java.lang.Object object)
add in interface java.util.Collectionadd in class AbstractCollectionDecorator
public void add(int index,
java.lang.Object object)
add in interface java.util.Listadd in class AbstractListDecoratorpublic boolean addAll(java.util.Collection coll)
addAll in interface java.util.CollectionaddAll in class AbstractCollectionDecorator
public boolean addAll(int index,
java.util.Collection coll)
addAll in interface java.util.ListaddAll in class AbstractListDecoratorpublic void clear()
clear in interface java.util.Collectionclear in class AbstractCollectionDecoratorpublic java.lang.Object get(int index)
get in interface java.util.Listget in class AbstractListDecoratorpublic int indexOf(java.lang.Object object)
indexOf in interface java.util.ListindexOf in class AbstractListDecoratorpublic java.util.Iterator iterator()
iterator in interface java.util.Collectioniterator in class AbstractCollectionDecoratorpublic int lastIndexOf(java.lang.Object object)
lastIndexOf in interface java.util.ListlastIndexOf in class AbstractListDecoratorpublic java.util.ListIterator listIterator()
listIterator in interface java.util.ListlistIterator in class AbstractListDecoratorpublic java.util.ListIterator listIterator(int index)
listIterator in interface java.util.ListlistIterator in class AbstractListDecoratorpublic java.lang.Object remove(int index)
remove in interface java.util.Listremove in class AbstractListDecoratorpublic boolean remove(java.lang.Object object)
remove in interface java.util.Collectionremove in class AbstractCollectionDecoratorpublic boolean removeAll(java.util.Collection coll)
removeAll in interface java.util.CollectionremoveAll in class AbstractCollectionDecoratorpublic boolean retainAll(java.util.Collection coll)
retainAll in interface java.util.CollectionretainAll in class AbstractCollectionDecorator
public java.lang.Object set(int index,
java.lang.Object object)
set in interface java.util.Listset in class AbstractListDecorator
public java.util.List subList(int fromIndex,
int toIndex)
subList in interface java.util.ListsubList in class AbstractListDecoratorpublic boolean isFull()
BoundedCollection
isFull in interface BoundedCollectiontrue if the collection is fullpublic int maxSize()
BoundedCollection
maxSize in interface BoundedCollection
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||