com.evolveum.midpoint.schema
Class ResultArrayList<T>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<T>
              extended by com.evolveum.midpoint.schema.ResultArrayList<T>
All Implemented Interfaces:
ResultList<T>, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>, java.util.RandomAccess

public class ResultArrayList<T>
extends java.util.ArrayList<T>
implements ResultList<T>

Author:
lazyman
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ResultArrayList()
           
ResultArrayList(int count)
           
 
Method Summary
 java.lang.Integer getTotalResultCount()
           Returns total number of all objects that matched a search/list criteria.
 void setTotalResultCount(java.lang.Integer count)
           Sets total number of all objects that matched a search/list criteria.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Constructor Detail

ResultArrayList

public ResultArrayList()

ResultArrayList

public ResultArrayList(int count)
Method Detail

getTotalResultCount

public java.lang.Integer getTotalResultCount()
Description copied from interface: ResultList

Returns total number of all objects that matched a search/list criteria.

It may be different from the list size e.g. if paging control was used in the request.

totalResultCount may be null. This means that repository cannot determine the total number of results. Negative value must not be used.

Specified by:
getTotalResultCount in interface ResultList<T>
Returns:
total number of all objects that matched a search/list criteria (or null).

setTotalResultCount

public void setTotalResultCount(java.lang.Integer count)
Description copied from interface: ResultList

Sets total number of all objects that matched a search/list criteria.

It may be different from the list size e.g. if paging control was used in the request.

totalResultCount may be null. This means that repository cannot determine the total number of results. Negative value must not be used.

Specified by:
setTotalResultCount in interface ResultList<T>
Parameters:
count - total number of all objects that matched a search/list criteria (or null).


Copyright © 2011 evolveum. All Rights Reserved.