Package com.norconex.commons.lang.flow

# Class BasePredicateAdapter<A,T>

java.lang.Object
com.norconex.commons.lang.flow.BasePredicateAdapter<A,T>

Type Parameters:
  `A` - the adaptee type (the type adapted to a Predicate)
  `T` - the type being evaluated by this predicate adapter

All Implemented Interfaces:
  `FlowPredicateAdapter<T>`, `Predicate<T>`

public abstract class BasePredicateAdapter<A,T> extends Object implements FlowPredicateAdapter<T>
An abstract `FlowPredicateAdapter` that takes care setting/getting the adaptee and leaves only the `Predicate.test(Object)` method to implement.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `BasePredicateAdapter()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `equals(Object obj)`
  `A`
  `getPredicateAdaptee()`
  `int`
  `hashCode()`
  `void`
  `setPredicateAdaptee(Object adaptee)`
  `String`
  `toString()`

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

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

  ### Methods inherited from interface java.util.function.Predicate

  `and, negate, or, test`

- ## Constructor Details

  - ### BasePredicateAdapter

    public BasePredicateAdapter()

- ## Method Details

  - ### getPredicateAdaptee

    public A getPredicateAdaptee()
    Specified by:
      `getPredicateAdaptee` in interface `FlowPredicateAdapter<A>`

  - ### setPredicateAdaptee

    public void setPredicateAdaptee(Object adaptee)
    Specified by:
      `setPredicateAdaptee` in interface `FlowPredicateAdapter<A>`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### equals

    public boolean equals(Object obj)
    Overrides:
      `equals` in class `Object`

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`