Class ClassObjectFilter

  • All Implemented Interfaces:

    public class ClassObjectFilter
    extends java.lang.Object
    implements ObjectFilter
    Filters objects by class, only accepting objects of the class specified in the constructor
    • Constructor Summary

      Constructor Description
      ClassObjectFilter​(java.lang.Class<?> clazz)
      The Allowed Class type
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(java.lang.Object object)  
      java.lang.Class getFilteredClass()  
      • Methods inherited from class java.lang.Object

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

      • ClassObjectFilter

        public ClassObjectFilter​(java.lang.Class<?> clazz)
        The Allowed Class type
        clazz -
    • Method Detail

      • accept

        public boolean accept​(java.lang.Object object)
        Specified by:
        accept in interface ObjectFilter
        true if the Iterator accepts the given object according to its class.
      • getFilteredClass

        public java.lang.Class getFilteredClass()