T
- list item typepublic class CollectionIncomplete<T> extends Object implements List<T>, RandomAccess, Serializable
List
and if truncated keeps the complete sizeConstructor and Description |
---|
CollectionIncomplete(Collection<T> collection,
Long actualSizeIfTruncated)
Collection that may be incomplete/truncated.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int arg0,
T arg1) |
boolean |
add(T arg0) |
boolean |
addAll(Collection<? extends T> arg0) |
boolean |
addAll(int arg0,
Collection<? extends T> arg1) |
void |
clear() |
boolean |
contains(Object arg0) |
boolean |
containsAll(Collection<?> arg0) |
boolean |
equals(Object arg0) |
T |
get(int arg0) |
Long |
getActualSizeIfTruncated()
Get the actual collection size if the collection was truncated
|
int |
hashCode() |
int |
indexOf(Object arg0) |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
int |
lastIndexOf(Object arg0) |
ListIterator<T> |
listIterator() |
ListIterator |
listIterator(int arg0) |
T |
remove(int arg0) |
boolean |
remove(Object arg0) |
boolean |
removeAll(Collection<?> arg0) |
boolean |
retainAll(Collection<?> arg0) |
T |
set(int arg0,
T arg1) |
void |
setActualSizeIfTruncated(Long actualSizeIfTruncated)
Set the actual collection size if the collection was truncated
|
int |
size() |
List<T> |
subList(int arg0,
int arg1) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] arg0) |
String |
toString() |
public CollectionIncomplete(Collection<T> collection, Long actualSizeIfTruncated)
collection
- collection instance to be wrappedactualSizeIfTruncated
- the actual collection size before truncation. Zero if the collection is not
truncated.public void add(int arg0, T arg1)
add
in interface List<T>
List.add(int, Object)
public boolean add(T arg0)
add
in interface Collection<T>
add
in interface List<T>
List.add(Object)
public boolean addAll(int arg0, Collection<? extends T> arg1)
addAll
in interface List<T>
List.addAll(int, java.util.Collection)
public boolean addAll(Collection<? extends T> arg0)
addAll
in interface Collection<T>
addAll
in interface List<T>
List.addAll(java.util.Collection)
public void clear()
clear
in interface Collection<T>
clear
in interface List<T>
List.clear()
public boolean contains(Object arg0)
contains
in interface Collection<T>
contains
in interface List<T>
List.contains(Object)
public boolean containsAll(Collection<?> arg0)
containsAll
in interface Collection<T>
containsAll
in interface List<T>
List.containsAll(java.util.Collection)
public boolean equals(Object arg0)
equals
in interface Collection<T>
equals
in interface List<T>
equals
in class Object
List.equals(Object)
public int hashCode()
hashCode
in interface Collection<T>
hashCode
in interface List<T>
hashCode
in class Object
List.hashCode()
public int indexOf(Object arg0)
indexOf
in interface List<T>
List.indexOf(Object)
public boolean isEmpty()
isEmpty
in interface Collection<T>
isEmpty
in interface List<T>
List.isEmpty()
public Iterator<T> iterator()
iterator
in interface Iterable<T>
iterator
in interface Collection<T>
iterator
in interface List<T>
List.iterator()
public int lastIndexOf(Object arg0)
lastIndexOf
in interface List<T>
List.lastIndexOf(Object)
public ListIterator<T> listIterator()
listIterator
in interface List<T>
List.listIterator()
public ListIterator listIterator(int arg0)
listIterator
in interface List<T>
List.listIterator(int)
public T remove(int arg0)
remove
in interface List<T>
List.remove(int)
public boolean remove(Object arg0)
remove
in interface Collection<T>
remove
in interface List<T>
List.remove(Object)
public boolean removeAll(Collection<?> arg0)
removeAll
in interface Collection<T>
removeAll
in interface List<T>
List.removeAll(java.util.Collection)
public boolean retainAll(Collection<?> arg0)
retainAll
in interface Collection<T>
retainAll
in interface List<T>
List.retainAll(java.util.Collection)
public T set(int arg0, T arg1)
set
in interface List<T>
List.set(int, Object)
public int size()
size
in interface Collection<T>
size
in interface List<T>
List.size()
public List<T> subList(int arg0, int arg1)
subList
in interface List<T>
List.subList(int, int)
public Object[] toArray()
toArray
in interface Collection<T>
toArray
in interface List<T>
List.toArray()
public <T> T[] toArray(T[] arg0)
toArray
in interface Collection<T>
toArray
in interface List<T>
List.toArray(Object[])
public Long getActualSizeIfTruncated()
For non-truncated collection the getActualSizeIfTruncated
is zero.
public void setActualSizeIfTruncated(Long actualSizeIfTruncated)
actualSizeIfTruncated
- The actualSizeIfTruncated to set.Copyright © 2005–2015 The Kuali Foundation. All rights reserved.