Class QueryList
- All Implemented Interfaces:
Serializable,Iterable<Element>,Collection<Element>,List<Element>,SequencedCollection<Element>
Query result collection.
- Since:
- Jan 28, 2013
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection col) Add collection to QueryList.first()Return the first element from collection.get(int index) last()Return the last element from collection.intsize()unique()return the first element from collection (equivalent tofirst().Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods 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
addFirst, addLast, contains, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray, toArray
-
Constructor Details
-
QueryList
public QueryList()QueryList constructor.
-
-
Method Details
-
get
-
size
public int size()- Specified by:
sizein interfaceCollection<Element>- Specified by:
sizein interfaceList<Element>- Specified by:
sizein classAbstractCollection<Element>
-
add
- Specified by:
addin interfaceCollection<Element>- Specified by:
addin interfaceList<Element>- Overrides:
addin classAbstractList<Element>
-
addAll
Add collection to QueryList.- Specified by:
addAllin interfaceCollection<Element>- Specified by:
addAllin interfaceList<Element>- Overrides:
addAllin classAbstractCollection<Element>- Parameters:
col- collection- Returns:
- true after finish add collection
-
first
Return the first element from collection.- Returns:
- first element
-
last
Return the last element from collection.- Returns:
- last element
-
unique
return the first element from collection (equivalent tofirst().- Returns:
- Element
-