Class FlipFlopPredicate<T>

java.lang.Object
diffblue.flipflop.FlipFlopPredicate<T>
All Implemented Interfaces:
Predicate<T>

public final class FlipFlopPredicate<T> extends Object implements Predicate<T>
Emulates flip-flop logic similar to two-dots flip-flop in Perl or Ruby.
  • Constructor Details

  • Method Details

    • test

      public boolean test(T value)
      Specified by:
      test in interface Predicate<T>