Package com.sun.corba.ee.impl.ior
Class FreezableList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
com.sun.corba.ee.impl.ior.FreezableList<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,List<E>
- 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
FieldsFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionFreezableList(List<E> delegate) FreezableList(List<E> 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, streamMethods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
delegate
-
immutable
private boolean immutable
-
-
Constructor Details
-
FreezableList
-
FreezableList
-
-
Method Details
-
equals
- Specified by:
equalsin interfaceCollection<E>- Specified by:
equalsin interfaceList<E>- Overrides:
equalsin classAbstractList<E>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<E>- Specified by:
hashCodein interfaceList<E>- Overrides:
hashCodein classAbstractList<E>
-
makeImmutable
public void makeImmutable() -
isImmutable
public boolean isImmutable() -
makeElementsImmutable
public void makeElementsImmutable() -
size
public int size()- Specified by:
sizein interfaceCollection<E>- Specified by:
sizein interfaceList<E>- Specified by:
sizein classAbstractCollection<E>
-
get
-
set
-
add
-
remove
-
subList
-