Class AnyArrayList<C extends Containerable>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<Object>
-
- com.evolveum.midpoint.prism.impl.xjc.AnyArrayList<C>
-
public class AnyArrayList<C extends Containerable> extends AbstractList<Object> implements PrismList
A list used for JAXB getAny() methods. It is not used for normal prism operation, not even if compilte-time (JAXB) classes are used. It is quite a bad way to use getAny() methods from the JAXB classes, it is much better to use prism facet instead. However we need this to be fully JAXB compliant and therefore support XML marshalling/unmarshalling. This is important e.g. for JAX-WS.- Author:
- Radovan Semancik
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description AnyArrayList(PrismContainerValue<C> containerValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int i, Object element)
boolean
add(Object element)
boolean
addAll(int i, Collection<? extends Object> elements)
boolean
addAll(Collection<? extends Object> elements)
Object
get(int index)
Object
remove(int index)
boolean
remove(Object element)
boolean
removeAll(Collection<?> objects)
int
size()
-
Methods inherited from class java.util.AbstractList
clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, set, 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
-
AnyArrayList
public AnyArrayList(PrismContainerValue<C> containerValue)
-
-
Method Detail
-
size
public int size()
- Specified by:
size
in interfaceCollection<C extends Containerable>
- Specified by:
size
in interfaceList<C extends Containerable>
- Specified by:
size
in classAbstractCollection<Object>
-
get
public Object get(int index)
- Specified by:
get
in interfaceList<C extends Containerable>
- Specified by:
get
in classAbstractList<Object>
-
addAll
public boolean addAll(Collection<? extends Object> elements)
- Specified by:
addAll
in interfaceCollection<C extends Containerable>
- Specified by:
addAll
in interfaceList<C extends Containerable>
- Overrides:
addAll
in classAbstractCollection<Object>
-
addAll
public boolean addAll(int i, Collection<? extends Object> elements)
- Specified by:
addAll
in interfaceList<C extends Containerable>
- Overrides:
addAll
in classAbstractList<Object>
-
add
public boolean add(Object element)
- Specified by:
add
in interfaceCollection<C extends Containerable>
- Specified by:
add
in interfaceList<C extends Containerable>
- Overrides:
add
in classAbstractList<Object>
-
add
public void add(int i, Object element)
- Specified by:
add
in interfaceList<C extends Containerable>
- Overrides:
add
in classAbstractList<Object>
-
remove
public Object remove(int index)
- Specified by:
remove
in interfaceList<C extends Containerable>
- Overrides:
remove
in classAbstractList<Object>
-
remove
public boolean remove(Object element)
- Specified by:
remove
in interfaceCollection<C extends Containerable>
- Specified by:
remove
in interfaceList<C extends Containerable>
- Overrides:
remove
in classAbstractCollection<Object>
-
removeAll
public boolean removeAll(Collection<?> objects)
- Specified by:
removeAll
in interfaceCollection<C extends Containerable>
- Specified by:
removeAll
in interfaceList<C extends Containerable>
- Overrides:
removeAll
in classAbstractCollection<Object>
-
-