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, removeRange
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream
Methods 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:
equals
in interfaceCollection<E>
- Specified by:
equals
in interfaceList<E>
- Overrides:
equals
in classAbstractList<E>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<E>
- Specified by:
hashCode
in interfaceList<E>
- Overrides:
hashCode
in classAbstractList<E>
-
makeImmutable
public void makeImmutable() -
isImmutable
public boolean isImmutable() -
makeElementsImmutable
public void makeElementsImmutable() -
size
public int size()- Specified by:
size
in interfaceCollection<E>
- Specified by:
size
in interfaceList<E>
- Specified by:
size
in classAbstractCollection<E>
-
get
-
set
-
add
-
remove
-
subList
-