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>
 
 public abstract class PrismReferenceArrayList<T> extends AbstractList<T> implements Serializable, PrismList - Author:
- lazyman TODO: account for concurrent structural modifications using modCount property
- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class java.util.AbstractListmodCount
 
- 
 - 
Constructor SummaryConstructors Constructor Description PrismReferenceArrayList(PrismReference reference, PrismContainerValue<?> parent)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanadd(T t)booleanaddAll(Collection<? extends T> ts)voidclear()JAXB unmarshaller is calling clear() on lists even though they were just created.protected abstract TcreateItem(PrismReferenceValue value)Tget(int i)protected PrismReferencegetReference()protected abstract PrismReferenceValuegetValueFrom(T t)booleanisEmpty()Tremove(int i)booleanremove(Object o)booleanremoveAll(Collection<?> objects)intsize()protected abstract booleanwillClear(PrismReferenceValue value)- 
Methods inherited from class java.util.AbstractListadd, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, set, subList
 - 
Methods inherited from class java.util.AbstractCollectioncontains, containsAll, retainAll, toArray, toArray, toString
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface java.util.CollectionparallelStream, removeIf, stream, toArray
 - 
Methods inherited from interface java.util.Listcontains, containsAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
 
- 
 
- 
- 
- 
Constructor Detail- 
PrismReferenceArrayListpublic PrismReferenceArrayList(PrismReference reference, PrismContainerValue<?> parent) 
 
- 
 - 
Method Detail- 
getReferenceprotected PrismReference getReference() 
 - 
getpublic T get(int i) 
 - 
sizepublic int size() - Specified by:
- sizein interface- Collection<T>
- Specified by:
- sizein interface- List<T>
- Specified by:
- sizein class- AbstractCollection<T>
 
 - 
createItemprotected abstract T createItem(PrismReferenceValue value) 
 - 
getValueFromprotected abstract PrismReferenceValue getValueFrom(T t) 
 - 
removepublic T remove(int i) 
 - 
removeAllpublic boolean removeAll(Collection<?> objects) - Specified by:
- removeAllin interface- Collection<T>
- Specified by:
- removeAllin interface- List<T>
- Overrides:
- removeAllin class- AbstractCollection<T>
 
 - 
removepublic boolean remove(Object o) - Specified by:
- removein interface- Collection<T>
- Specified by:
- removein interface- List<T>
- Overrides:
- removein class- AbstractCollection<T>
 
 - 
addpublic boolean add(T t) - Specified by:
- addin interface- Collection<T>
- Specified by:
- addin interface- List<T>
- Overrides:
- addin class- AbstractList<T>
 
 - 
addAllpublic boolean addAll(Collection<? extends T> ts) - Specified by:
- addAllin interface- Collection<T>
- Specified by:
- addAllin interface- List<T>
- Overrides:
- addAllin class- AbstractCollection<T>
 
 - 
clearpublic 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 interface- Collection<T>
- Specified by:
- clearin interface- List<T>
- Overrides:
- clearin class- AbstractList<T>
 
 - 
willClearprotected abstract boolean willClear(PrismReferenceValue value) 
 - 
isEmptypublic boolean isEmpty() - Specified by:
- isEmptyin interface- Collection<T>
- Specified by:
- isEmptyin interface- List<T>
- Overrides:
- isEmptyin class- AbstractCollection<T>
 
 
- 
 
-