Class ExactMatch

    • Field Detail

      • m_Classes

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

      • ExactMatch

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

        public ExactMatch​(Class[] classes)
        For checking against a multiple classes.
        Parameters:
        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
        Parameters:
        actor - the actor to check
        Returns:
        true if the actor class is in the specified list of classes