Interface FieldAndClassFilter

All Superinterfaces:
FieldFilter
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface FieldAndClassFilter extends FieldFilter
Filter for fields and classes.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    ignore(Class<?> clazz)
    Checks whether a Class must be ignored or not.
    default boolean
    ignore(Class<?> cls, Field field)
    Checks whether a Field must be ignored or not.
  • Method Details

    • ignore

      default boolean ignore(Class<?> cls, Field field)
      Description copied from interface: FieldFilter
      Checks whether a Field must be ignored or not.
      Specified by:
      ignore in interface FieldFilter
      Parameters:
      cls - the class to which the field belong. Which might be different from the declaring class if the field is from a superclass.
      field - the field to check
      Returns:
      true if the field must be ignored false otherwise.
    • ignore

      boolean ignore(Class<?> clazz)
      Checks whether a Class must be ignored or not.
      Parameters:
      clazz - the class to check
      Returns:
      true if the class must be ignored false otherwise.