Class Query<T,​Q,​R>

  • All Implemented Interfaces:
    java.util.function.Predicate<T>
    Direct Known Subclasses:
    ItemQuery, SceneEntityQuery, WidgetQuery

    public abstract class Query<T,​Q,​R>
    extends java.lang.Object
    implements java.util.function.Predicate<T>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.function.Supplier<java.util.List<T>> supplier  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Query​(java.util.function.Supplier<java.util.List<T>> supplier)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      Q filter​(java.util.function.Predicate<T> filter)  
      R results()  
      protected abstract R results​(java.util.List<T> list)  
      protected Q self()  
      boolean test​(T t)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or
    • Field Detail

      • supplier

        protected final java.util.function.Supplier<java.util.List<T>> supplier
    • Constructor Detail

      • Query

        protected Query​(java.util.function.Supplier<java.util.List<T>> supplier)
    • Method Detail

      • results

        public R results()
      • filter

        public Q filter​(java.util.function.Predicate<T> filter)
      • test

        public boolean test​(T t)
        Specified by:
        test in interface java.util.function.Predicate<T>
      • results

        protected abstract R results​(java.util.List<T> list)
      • self

        protected Q self()