Package com.sun.corba.se.impl.ior
Class FreezableList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList
com.sun.corba.se.impl.ior.FreezableList
- All Implemented Interfaces:
Iterable,Collection,List
- Direct Known Subclasses:
IdentifiableContainerBase,IORTemplateListImpl
Simple class that delegates all List operations to
another list. It also can be frozen, which means that
a number of operations can be performed on the list,
and then the list can be made immutable, so that no
further changes are possible. A FreezableList is frozen
using the makeImmutable method.
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionFreezableList(List delegate) FreezableList(List delegate, boolean immutable) -
Method Summary
Methods inherited from class java.util.AbstractList
add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRangeMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Constructor Details
-
FreezableList
-
FreezableList
-
-
Method Details
-
equals
- Specified by:
equalsin interfaceCollection- Specified by:
equalsin interfaceList- Overrides:
equalsin classAbstractList
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection- Specified by:
hashCodein interfaceList- Overrides:
hashCodein classAbstractList
-
makeImmutable
public void makeImmutable() -
isImmutable
public boolean isImmutable() -
makeElementsImmutable
public void makeElementsImmutable() -
size
public int size()- Specified by:
sizein interfaceCollection- Specified by:
sizein interfaceList- Specified by:
sizein classAbstractCollection
-
get
- Specified by:
getin interfaceList- Specified by:
getin classAbstractList
-
set
- Specified by:
setin interfaceList- Overrides:
setin classAbstractList
-
add
- Specified by:
addin interfaceList- Overrides:
addin classAbstractList
-
remove
- Specified by:
removein interfaceList- Overrides:
removein classAbstractList
-
subList
- Specified by:
subListin interfaceList- Overrides:
subListin classAbstractList
-