com.evolveum.midpoint.prism.xjc
Class PropertyArrayList<T>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<T>
          extended by com.evolveum.midpoint.prism.xjc.PropertyArrayList<T>
All Implemented Interfaces:
Iterable<T>, Collection<T>, List<T>

public class PropertyArrayList<T>
extends AbstractList<T>

This class is used to wrap PrismProperty values for JAXB objects with List properties.

This list implementation is based on Set so indexes are not guaranteed. Objects positions can change in time :)

Author:
lazyman

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
PropertyArrayList(PrismProperty property)
           
 
Method Summary
 void add(int i, T t)
           
 boolean add(T t)
           
 boolean addAll(Collection<? extends T> ts)
           
 boolean addAll(int i, Collection<? extends T> ts)
           
 T get(int index)
           
 T remove(int i)
           
 boolean remove(Object o)
           
 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.List
contains, containsAll, isEmpty, retainAll, toArray, toArray
 

Constructor Detail

PropertyArrayList

public PropertyArrayList(PrismProperty property)
Method Detail

size

public int size()
Specified by:
size in interface Collection<T>
Specified by:
size in interface List<T>
Specified by:
size in class AbstractCollection<T>

get

public T get(int index)
Specified by:
get in interface List<T>
Specified by:
get in class AbstractList<T>

addAll

public boolean addAll(Collection<? extends T> ts)
Specified by:
addAll in interface Collection<T>
Specified by:
addAll in interface List<T>
Overrides:
addAll in class AbstractCollection<T>

addAll

public boolean addAll(int i,
                      Collection<? extends T> ts)
Specified by:
addAll in interface List<T>
Overrides:
addAll in class AbstractList<T>

add

public boolean add(T t)
Specified by:
add in interface Collection<T>
Specified by:
add in interface List<T>
Overrides:
add in class AbstractList<T>

add

public void add(int i,
                T t)
Specified by:
add in interface List<T>
Overrides:
add in class AbstractList<T>

remove

public T remove(int i)
Specified by:
remove in interface List<T>
Overrides:
remove in class AbstractList<T>

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection<T>
Specified by:
remove in interface List<T>
Overrides:
remove in class AbstractCollection<T>

removeAll

public boolean removeAll(Collection<?> objects)
Specified by:
removeAll in interface Collection<T>
Specified by:
removeAll in interface List<T>
Overrides:
removeAll in class AbstractCollection<T>


Copyright © 2013 evolveum. All Rights Reserved.