Package net.runelite.api
Class QueryResults<EntityType>
- java.lang.Object
-
- net.runelite.api.QueryResults<EntityType>
-
- All Implemented Interfaces:
java.lang.Iterable<EntityType>,java.util.Collection<EntityType>
- Direct Known Subclasses:
LocatableQueryResults
public class QueryResults<EntityType> extends java.lang.Object implements java.util.Collection<EntityType>
-
-
Field Summary
Fields Modifier and Type Field Description java.util.ArrayList<EntityType>list
-
Constructor Summary
Constructors Constructor Description QueryResults(java.util.Collection<? extends EntityType> results)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(EntityType entityType)booleanaddAll(java.util.Collection<? extends EntityType> c)voidclear()booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection<?> c)EntityTypefirst()EntityTypeget(int index)booleanisEmpty()java.util.Iterator<EntityType>iterator()EntityTypelast()QueryResultslimit(int entries)QueryResultslimit(int startIndex, int amount)booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> c)booleanretainAll(java.util.Collection<?> c)intsize()java.lang.Object[]toArray()<entityType>
entityType[]toArray(entityType[] a)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
list
public final java.util.ArrayList<EntityType> list
-
-
Constructor Detail
-
QueryResults
public QueryResults(java.util.Collection<? extends EntityType> results)
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein interfacejava.util.Collection<EntityType>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfacejava.util.Collection<EntityType>
-
contains
public boolean contains(java.lang.Object o)
- Specified by:
containsin interfacejava.util.Collection<EntityType>
-
iterator
public java.util.Iterator<EntityType> iterator()
- Specified by:
iteratorin interfacejava.util.Collection<EntityType>- Specified by:
iteratorin interfacejava.lang.Iterable<EntityType>
-
toArray
public java.lang.Object[] toArray()
- Specified by:
toArrayin interfacejava.util.Collection<EntityType>
-
toArray
public <entityType> entityType[] toArray(entityType[] a)
- Specified by:
toArrayin interfacejava.util.Collection<EntityType>
-
add
public boolean add(EntityType entityType)
- Specified by:
addin interfacejava.util.Collection<EntityType>
-
remove
public boolean remove(java.lang.Object o)
- Specified by:
removein interfacejava.util.Collection<EntityType>
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
- Specified by:
containsAllin interfacejava.util.Collection<EntityType>
-
addAll
public boolean addAll(java.util.Collection<? extends EntityType> c)
- Specified by:
addAllin interfacejava.util.Collection<EntityType>
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
- Specified by:
removeAllin interfacejava.util.Collection<EntityType>
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
- Specified by:
retainAllin interfacejava.util.Collection<EntityType>
-
clear
public void clear()
- Specified by:
clearin interfacejava.util.Collection<EntityType>
-
first
@Nullable public final EntityType first()
-
last
@Nullable public final EntityType last()
-
get
public EntityType get(int index)
-
limit
public final QueryResults limit(int entries)
-
limit
public final QueryResults limit(int startIndex, int amount)
-
-