Class ResourceFilter

  • All Implemented Interfaces:

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

      • ResourceFilter

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

      • evaluate

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