com.evolveum.midpoint.prism.xjc
Class PrismContainerArrayList<T extends Containerable>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<T>
com.evolveum.midpoint.prism.xjc.PrismContainerArrayList<T>
- All Implemented Interfaces:
- java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>
public abstract class PrismContainerArrayList<T extends Containerable>
- extends java.util.AbstractList<T>
- Author:
- lazyman
Changed to extend AbstractList instead of ArrayList, as some functionality of ArrayList
(e.g. its optimized Itr class) does not work with class (PrismContainerArrayList), as of Java7.
TODO: account for concurrent structural modifications using modCount property
Fields inherited from class java.util.AbstractList |
modCount |
Methods inherited from class java.util.AbstractList |
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, set, subList |
Methods inherited from class java.util.AbstractCollection |
contains, containsAll, 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.List |
contains, containsAll, retainAll, toArray, toArray |
PrismContainerArrayList
public PrismContainerArrayList(PrismContainer<T> container)
createItem
protected abstract T createItem(PrismContainerValue value)
getValueFrom
protected abstract PrismContainerValue getValueFrom(T t)
get
public T get(int i)
- Specified by:
get
in interface java.util.List<T extends Containerable>
- Specified by:
get
in class java.util.AbstractList<T extends Containerable>
size
public int size()
- Specified by:
size
in interface java.util.Collection<T extends Containerable>
- Specified by:
size
in interface java.util.List<T extends Containerable>
- Specified by:
size
in class java.util.AbstractCollection<T extends Containerable>
remove
public T remove(int i)
- Specified by:
remove
in interface java.util.List<T extends Containerable>
- Overrides:
remove
in class java.util.AbstractList<T extends Containerable>
removeAll
public boolean removeAll(java.util.Collection<?> objects)
- Specified by:
removeAll
in interface java.util.Collection<T extends Containerable>
- Specified by:
removeAll
in interface java.util.List<T extends Containerable>
- Overrides:
removeAll
in class java.util.AbstractCollection<T extends Containerable>
remove
public boolean remove(java.lang.Object o)
- Specified by:
remove
in interface java.util.Collection<T extends Containerable>
- Specified by:
remove
in interface java.util.List<T extends Containerable>
- Overrides:
remove
in class java.util.AbstractCollection<T extends Containerable>
add
public boolean add(T t)
- Specified by:
add
in interface java.util.Collection<T extends Containerable>
- Specified by:
add
in interface java.util.List<T extends Containerable>
- Overrides:
add
in class java.util.AbstractList<T extends Containerable>
addAll
public boolean addAll(java.util.Collection<? extends T> ts)
- Specified by:
addAll
in interface java.util.Collection<T extends Containerable>
- Specified by:
addAll
in interface java.util.List<T extends Containerable>
- Overrides:
addAll
in class java.util.AbstractCollection<T extends Containerable>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface java.util.Collection<T extends Containerable>
- Specified by:
isEmpty
in interface java.util.List<T extends Containerable>
- Overrides:
isEmpty
in class java.util.AbstractCollection<T extends Containerable>
Copyright © 2012 evolveum. All Rights Reserved.