Class PrismContainerArrayList<T extends Containerable>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<T>
com.evolveum.midpoint.prism.impl.xjc.PrismContainerArrayList<T>
- All Implemented Interfaces:
PrismList,Serializable,Iterable<T>,Collection<T>,List<T>
- Direct Known Subclasses:
ContainerablePrismBinding.ContainerableList
public abstract class PrismContainerArrayList<T extends Containerable>
extends AbstractList<T>
implements Serializable, PrismList
- Author:
- lazyman Changed to extend AbstractList instead of ArrayList, as some functionality of ArrayList (e.g. its optimized Itr class) does not work with class (PrismContainerArrayList), as of Java7. TODO: account for concurrent structural modifications using modCount property
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionPrismContainerArrayList(PrismContainer<T> container) PrismContainerArrayList(PrismContainer<T> container, PrismContainerValue<?> parent) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends T> ts) protected abstract TcreateItem(PrismContainerValue value) protected Tget(int i) protected abstract PrismContainerValuegetValueFrom(T t) booleanisEmpty()remove(int i) booleanbooleanremoveAll(Collection<?> objects) intsize()Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
contains, containsAll, 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
contains, containsAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Constructor Details
-
PrismContainerArrayList
public PrismContainerArrayList() -
PrismContainerArrayList
-
PrismContainerArrayList
-
-
Method Details
-
getValueFrom
-
createItemInternal
-
createItem
-
get
- Specified by:
getin interfaceList<T extends Containerable>- Specified by:
getin classAbstractList<T extends Containerable>
-
size
public int size()- Specified by:
sizein interfaceCollection<T extends Containerable>- Specified by:
sizein interfaceList<T extends Containerable>- Specified by:
sizein classAbstractCollection<T extends Containerable>
-
remove
- Specified by:
removein interfaceList<T extends Containerable>- Overrides:
removein classAbstractList<T extends Containerable>
-
removeAll
- Specified by:
removeAllin interfaceCollection<T extends Containerable>- Specified by:
removeAllin interfaceList<T extends Containerable>- Overrides:
removeAllin classAbstractCollection<T extends Containerable>
-
remove
- Specified by:
removein interfaceCollection<T extends Containerable>- Specified by:
removein interfaceList<T extends Containerable>- Overrides:
removein classAbstractCollection<T extends Containerable>
-
add
- Specified by:
addin interfaceCollection<T extends Containerable>- Specified by:
addin interfaceList<T extends Containerable>- Overrides:
addin classAbstractList<T extends Containerable>
-
addAll
- Specified by:
addAllin interfaceCollection<T extends Containerable>- Specified by:
addAllin interfaceList<T extends Containerable>- Overrides:
addAllin classAbstractCollection<T extends Containerable>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<T extends Containerable>- Specified by:
isEmptyin interfaceList<T extends Containerable>- Overrides:
isEmptyin classAbstractCollection<T extends Containerable>
-