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
ConstructorDescriptionPrismContainerArrayList
(PrismContainer<T> container) PrismContainerArrayList
(PrismContainer<T> container, PrismContainerValue<?> parent) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends T> ts) protected abstract T
createItem
(PrismContainerValue value) protected T
get
(int i) protected abstract PrismContainerValue
getValueFrom
(T t) boolean
isEmpty()
remove
(int i) boolean
boolean
removeAll
(Collection<?> objects) int
size()
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, set, subList
Methods inherited from class java.util.AbstractCollection
contains, containsAll, 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, toArray
Methods 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:
get
in interfaceList<T extends Containerable>
- Specified by:
get
in classAbstractList<T extends Containerable>
-
size
public int size()- Specified by:
size
in interfaceCollection<T extends Containerable>
- Specified by:
size
in interfaceList<T extends Containerable>
- Specified by:
size
in classAbstractCollection<T extends Containerable>
-
remove
- Specified by:
remove
in interfaceList<T extends Containerable>
- Overrides:
remove
in classAbstractList<T extends Containerable>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<T extends Containerable>
- Specified by:
removeAll
in interfaceList<T extends Containerable>
- Overrides:
removeAll
in classAbstractCollection<T extends Containerable>
-
remove
- Specified by:
remove
in interfaceCollection<T extends Containerable>
- Specified by:
remove
in interfaceList<T extends Containerable>
- Overrides:
remove
in classAbstractCollection<T extends Containerable>
-
add
- Specified by:
add
in interfaceCollection<T extends Containerable>
- Specified by:
add
in interfaceList<T extends Containerable>
- Overrides:
add
in classAbstractList<T extends Containerable>
-
addAll
- Specified by:
addAll
in interfaceCollection<T extends Containerable>
- Specified by:
addAll
in interfaceList<T extends Containerable>
- Overrides:
addAll
in classAbstractCollection<T extends Containerable>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<T extends Containerable>
- Specified by:
isEmpty
in interfaceList<T extends Containerable>
- Overrides:
isEmpty
in classAbstractCollection<T extends Containerable>
-