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 wrapPrismProperty
values for JAXB objects withList
properties.This list implementation is based on
Set
so 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 void
add(int i, T t)
boolean
add(T t)
boolean
addAll(int i, Collection<? extends T> ts)
boolean
addAll(Collection<? extends T> ts)
T
get(int index)
T
remove(int i)
boolean
remove(Object o)
boolean
removeAll(Collection<?> objects)
T
set(int index, T element)
int
size()
-
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:
size
in interfaceCollection<T>
- Specified by:
size
in interfaceList<T>
- Specified by:
size
in classAbstractCollection<T>
-
get
public T get(int index)
-
addAll
public boolean addAll(Collection<? extends T> ts)
- Specified by:
addAll
in interfaceCollection<T>
- Specified by:
addAll
in interfaceList<T>
- Overrides:
addAll
in classAbstractCollection<T>
-
addAll
public boolean addAll(int i, Collection<? extends T> ts)
-
add
public boolean add(T t)
- Specified by:
add
in interfaceCollection<T>
- Specified by:
add
in interfaceList<T>
- Overrides:
add
in classAbstractList<T>
-
add
public void add(int i, T t)
-
remove
public T remove(int i)
-
remove
public boolean remove(Object o)
- Specified by:
remove
in interfaceCollection<T>
- Specified by:
remove
in interfaceList<T>
- Overrides:
remove
in classAbstractCollection<T>
-
removeAll
public boolean removeAll(Collection<?> objects)
- Specified by:
removeAll
in interfaceCollection<T>
- Specified by:
removeAll
in interfaceList<T>
- Overrides:
removeAll
in classAbstractCollection<T>
-
-