Class PropertyArrayList<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- com.evolveum.midpoint.prism.impl.xjc.PropertyArrayList<T>
-
- All Implemented Interfaces:
PrismList,Serializable,Iterable<T>,Collection<T>,List<T>
public class PropertyArrayList<T> extends AbstractList<T> implements Serializable, PrismList
This class is used to wrapPrismPropertyvalues for JAXB objects withListproperties.This list implementation is based on
Setso indexes are not guaranteed. Objects positions can change in time :)- Author:
- lazyman
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description PropertyArrayList(@NotNull PrismProperty property, @NotNull PrismContainerValue<?> parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int i, T t)booleanadd(T t)booleanaddAll(int i, Collection<? extends T> ts)booleanaddAll(Collection<? extends T> ts)Tget(int index)Tremove(int i)booleanremove(Object o)booleanremoveAll(Collection<?> objects)Tset(int index, T element)intsize()-
Methods inherited from class java.util.AbstractList
clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
-
Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, 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, isEmpty, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
-
-
-
Constructor Detail
-
PropertyArrayList
public PropertyArrayList(@NotNull @NotNull PrismProperty property, @NotNull @NotNull PrismContainerValue<?> parent)
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceList<T>- Specified by:
sizein classAbstractCollection<T>
-
get
public T get(int index)
-
addAll
public boolean addAll(Collection<? extends T> ts)
- Specified by:
addAllin interfaceCollection<T>- Specified by:
addAllin interfaceList<T>- Overrides:
addAllin classAbstractCollection<T>
-
addAll
public boolean addAll(int i, Collection<? extends T> ts)
-
add
public boolean add(T t)
- Specified by:
addin interfaceCollection<T>- Specified by:
addin interfaceList<T>- Overrides:
addin classAbstractList<T>
-
add
public void add(int i, T t)
-
remove
public T remove(int i)
-
remove
public boolean remove(Object o)
- Specified by:
removein interfaceCollection<T>- Specified by:
removein interfaceList<T>- Overrides:
removein classAbstractCollection<T>
-
removeAll
public boolean removeAll(Collection<?> objects)
- Specified by:
removeAllin interfaceCollection<T>- Specified by:
removeAllin interfaceList<T>- Overrides:
removeAllin classAbstractCollection<T>
-
-