Package org.kuali.rice.krad.lookup
Class CollectionIncomplete<T>
java.lang.Object
org.kuali.rice.krad.lookup.CollectionIncomplete<T>
- Type Parameters:
T- list item type
- All Implemented Interfaces:
Serializable,Iterable<T>,Collection<T>,List<T>,RandomAccess
Wraps a
List and if truncated keeps the complete size- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionIncomplete(Collection<T> collection, Long actualSizeIfTruncated) Collection that may be incomplete/truncated. -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int arg0, Collection<? extends T> arg1) booleanaddAll(Collection<? extends T> arg0) voidclear()booleanbooleancontainsAll(Collection<?> arg0) booleanget(int arg0) Get the actual collection size if the collection was truncatedinthashCode()intbooleanisEmpty()iterator()intlastIndexOf(Object arg0) listIterator(int arg0) remove(int arg0) booleanbooleanremoveAll(Collection<?> arg0) booleanretainAll(Collection<?> arg0) voidsetActualSizeIfTruncated(Long actualSizeIfTruncated) Set the actual collection size if the collection was truncatedintsize()subList(int arg0, int arg1) Object[]toArray()<T> T[]toArray(T[] arg0) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
replaceAll, sort, spliterator
-
Constructor Details
-
CollectionIncomplete
Collection that may be incomplete/truncated.- Parameters:
collection- collection instance to be wrappedactualSizeIfTruncated- the actual collection size before truncation. Zero if the collection is not truncated.
-
-
Method Details
-
add
-
add
-
addAll
-
addAll
-
clear
public void clear() -
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceList<T>- See Also:
-
equals
-
get
-
hashCode
public int hashCode() -
indexOf
-
isEmpty
public boolean isEmpty() -
iterator
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T>- See Also:
-
listIterator
- Specified by:
listIteratorin interfaceList<T>- See Also:
-
listIterator
- Specified by:
listIteratorin interfaceList<T>- See Also:
-
remove
-
remove
-
removeAll
-
retainAll
-
set
-
size
public int size() -
subList
-
toArray
-
toArray
public <T> T[] toArray(T[] arg0) -
toString
-
getActualSizeIfTruncated
Get the actual collection size if the collection was truncatedFor non-truncated collection the
getActualSizeIfTruncatedis zero.- Returns:
- Returns the actualSizeIfTruncated.
-
setActualSizeIfTruncated
Set the actual collection size if the collection was truncated- Parameters:
actualSizeIfTruncated- The actualSizeIfTruncated to set.
-