Package org.rspeer.game.query.results
Class QueryResults<T,QR extends SelfTyped<QR>>
java.lang.Object
org.rspeer.game.query.results.QueryResults<T,QR>
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,SelfTyped<QR>
- Direct Known Subclasses:
ComponentQueryResults
,ItemQueryResults
,RelationshipQueryResults
,SceneNodeQueryResults
,StockMarketTransactionQueryResults
,WorldQueryResults
public abstract class QueryResults<T,QR extends SelfTyped<QR>>
extends Object
implements Collection<T>, SelfTyped<QR>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
boolean
boolean
addAll
(Collection<? extends T> c) asList()
void
clear()
boolean
boolean
containsAll
(Collection<?> c) final T
first()
get
(int index) int
boolean
isEmpty()
iterator()
final T
last()
int
lastIndexOf
(T o) final QR
limit
(int entries) final QR
limit
(int startIndex, int amount) final <K> List<K>
final T
random()
boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) final QR
reverse()
final QR
shuffle()
int
size()
final QR
sort
(Comparator<? super T> comparator) Object[]
toArray()
Deprecated.T[]
toString()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
QueryResults
-
-
Method Details
-
sort
-
retainAll
- Specified by:
retainAll
in interfaceCollection<T>
-
asList
-
get
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<T>
-
lastIndexOf
-
addAll
- Specified by:
addAll
in interfaceCollection<T>
-
limit
-
first
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<T>
-
size
public int size()- Specified by:
size
in interfaceCollection<T>
-
toArray
- Specified by:
toArray
in interfaceCollection<T>
-
toArray
Deprecated.- Specified by:
toArray
in interfaceCollection<T>
-
toString
-
removeAll
- Specified by:
removeAll
in interfaceCollection<T>
-
remove
- Specified by:
remove
in interfaceCollection<T>
-
add
- Specified by:
add
in interfaceCollection<T>
-
reverse
-
last
-
indexOf
-
map
-
accept
-
random
-
contains
- Specified by:
contains
in interfaceCollection<T>
-
shuffle
-
containsAll
- Specified by:
containsAll
in interfaceCollection<T>
-
iterator
-
limit
-