Interface IfElse.Predicate

Enclosing class:
IfElse
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 static interface IfElse.Predicate
Interface for the condition that is tested, to determine which DrawObject to use.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    test(ObjectWithProperties object, RGBStack stack, int identifier)
    Evaluates whether the condition is true or not.
  • Method Details

    • test

      boolean test(ObjectWithProperties object, RGBStack stack, int identifier)
      Evaluates whether the condition is true or not.
      Parameters:
      object - a particular ObjectMask.
      stack - the corresponding image on which object lies.
      identifier - an identifier associated with object.
      Returns:
      true or false, as evaluated.