Class QueryResult<T>

  • All Implemented Interfaces:
    java.lang.Iterable<T>, java.util.Collection<T>
    Direct Known Subclasses:
    LocatableEntityQueryResult

    public class QueryResult<T>
    extends java.lang.Object
    implements java.util.Collection<T>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected APIContext ctx  
    • Constructor Summary

      Constructors 
      Constructor Description
      QueryResult​(java.util.List<T> objects, APIContext ctx)  
    • Constructor Detail

      • QueryResult

        public QueryResult​(java.util.List<T> objects,
                           APIContext ctx)
    • Method Detail

      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<T>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection<T>
      • contains

        public boolean contains​(java.lang.Object obj)
        Specified by:
        contains in interface java.util.Collection<T>
      • containsAll

        public boolean containsAll​(java.util.Collection<?> c)
        Specified by:
        containsAll in interface java.util.Collection<T>
      • iterator

        public java.util.Iterator<T> iterator()
        Specified by:
        iterator in interface java.util.Collection<T>
        Specified by:
        iterator in interface java.lang.Iterable<T>
      • toArray

        public java.lang.Object[] toArray()
        Specified by:
        toArray in interface java.util.Collection<T>
      • toArray

        public <T> T[] toArray​(T[] array)
        Specified by:
        toArray in interface java.util.Collection<T>
      • toList

        public java.util.List<T> toList()
      • add

        public boolean add​(T obj)
        Specified by:
        add in interface java.util.Collection<T>
      • addAll

        public boolean addAll​(java.util.Collection<? extends T> c)
        Specified by:
        addAll in interface java.util.Collection<T>
      • remove

        public boolean remove​(java.lang.Object obj)
        Specified by:
        remove in interface java.util.Collection<T>
      • removeAll

        public boolean removeAll​(java.util.Collection<?> c)
        Specified by:
        removeAll in interface java.util.Collection<T>
      • retainAll

        public boolean retainAll​(java.util.Collection<?> c)
        Specified by:
        retainAll in interface java.util.Collection<T>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<T>
      • limit

        public QueryResult<T> limit​(int startIndex,
                                    int amount)
      • sort

        public QueryResult<T> sort​(java.util.Comparator<? super T> comparator)
      • random

        public T random()
      • first

        public T first()
      • last

        public T last()