Class SuperclassOrInterface

    • Field Detail

      • m_Classes

        protected List<Class> m_Classes
        the classes to check against.
    • Constructor Detail

      • SuperclassOrInterface

        public SuperclassOrInterface​(Class cls)
        For checking against a single class only.
        cls - the class (superclass, interface) to check against
      • SuperclassOrInterface

        public SuperclassOrInterface​(Class[] classes)
        For checking against a multiple classes.
        classes - the classes (superclasses, interfaces) to check against
    • Method Detail

      • accept

        public boolean accept​(Actor actor)
        Returns whether the actor should be kept.
        Specified by:
        accept in interface ActorFilter
        actor - the actor to check
        true if the actor class is in the specified list of classes