Class PrismReferenceArrayList<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<T>
com.evolveum.midpoint.prism.impl.xjc.PrismReferenceArrayList<T>
- All Implemented Interfaces:
PrismList,Serializable,Iterable<T>,Collection<T>,List<T>
- Direct Known Subclasses:
ContainerablePrismBinding.ReferencableList
public abstract class PrismReferenceArrayList<T>
extends AbstractList<T>
implements Serializable, PrismList
- Author:
- lazyman TODO: account for concurrent structural modifications using modCount property
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionPrismReferenceArrayList(PrismReference reference, PrismContainerValue<?> parent) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends T> ts) voidclear()JAXB unmarshaller is calling clear() on lists even though they were just created.protected abstract TcreateItem(PrismReferenceValue value) get(int i) protected PrismReferenceprotected abstract PrismReferenceValuegetValueFrom(T t) booleanisEmpty()remove(int i) booleanbooleanremoveAll(Collection<?> objects) intsize()protected abstract booleanwillClear(PrismReferenceValue value) Methods inherited from class java.util.AbstractList
add, addAll, 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
-
PrismReferenceArrayList
-
-
Method Details
-
getReference
-
get
-
size
public int size()- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceList<T>- Specified by:
sizein classAbstractCollection<T>
-
createItem
-
getValueFrom
-
remove
-
removeAll
- Specified by:
removeAllin interfaceCollection<T>- Specified by:
removeAllin interfaceList<T>- Overrides:
removeAllin classAbstractCollection<T>
-
remove
- Specified by:
removein interfaceCollection<T>- Specified by:
removein interfaceList<T>- Overrides:
removein classAbstractCollection<T>
-
add
- Specified by:
addin interfaceCollection<T>- Specified by:
addin interfaceList<T>- Overrides:
addin classAbstractList<T>
-
addAll
- Specified by:
addAllin interfaceCollection<T>- Specified by:
addAllin interfaceList<T>- Overrides:
addAllin classAbstractCollection<T>
-
clear
public void clear()JAXB unmarshaller is calling clear() on lists even though they were just created. As the references should be visible as two JAXB fields, clearing one of them will also clear the other. Therefore we need this hack. Calling clear() will only clear the values that naturally "belong" to the list.- Specified by:
clearin interfaceCollection<T>- Specified by:
clearin interfaceList<T>- Overrides:
clearin classAbstractList<T>
-
willClear
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<T>- Specified by:
isEmptyin interfaceList<T>- Overrides:
isEmptyin classAbstractCollection<T>
-