Package org.kie.api.runtime

# Class ClassObjectFilter

java.lang.Object
org.kie.api.runtime.ClassObjectFilter

All Implemented Interfaces:
  `ObjectFilter`

public class ClassObjectFilter extends Object implements ObjectFilter
Filters objects by class, only accepting objects of the class specified in the constructor

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ClassObjectFilter(Class<?> clazz)`
  The Allowed Class type

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `accept(Object object)`
  `Class`
  `getFilteredClass()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ClassObjectFilter

    public ClassObjectFilter(Class<?> clazz)
    The Allowed Class type
    Parameters:
      `clazz` -

- ## Method Details

  - ### accept

    public boolean accept(Object object)
    Specified by:
      `accept` in interface `ObjectFilter`
    Returns:
      true if the Iterator accepts the given object according to its class.

  - ### getFilteredClass

    public Class getFilteredClass()