Class ResourceFilter

  • All Implemented Interfaces:
    Predicate

    public class ResourceFilter
    extends java.lang.Object
    implements Predicate
    Predicate used to filter resources based on their adaptability.
    • Constructor Summary

      Constructors 
      Constructor Description
      ResourceFilter​(java.lang.Class filterClass)
      Creates a new resource filter for the given class
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean evaluate​(java.lang.Object o)
      Use the specified parameter to perform a test that returns true or false.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResourceFilter

        public ResourceFilter​(java.lang.Class filterClass)
        Creates a new resource filter for the given class
        Parameters:
        filterClass - the class to filter on
    • Method Detail

      • evaluate

        public boolean evaluate​(java.lang.Object o)
        Use the specified parameter to perform a test that returns true or false.
        Specified by:
        evaluate in interface Predicate
        Parameters:
        o - the object to evaluate, should not be changed
        Returns:
        true if o is a Resource and adapts to the respective filter class.