# Uses of Class
com.norconex.commons.lang.function.PredicatedConsumer

Packages that use PredicatedConsumer
Package
Description
com.norconex.commons.lang.function
Utility classes enhancing classic Java functions.

- ## Uses of PredicatedConsumer in com.norconex.commons.lang.function

  Methods in com.norconex.commons.lang.function that return PredicatedConsumer
  Modifier and Type
  Method
  Description
  `static <T> PredicatedConsumer<T>`
  PredicatedConsumer.`ifFalse(Predicate<T> condition, Consumer<T> thenConsumer)`
  If condition is `false`, then execute consumer.
  `static <T> PredicatedConsumer<T>`
  PredicatedConsumer.`ifFalse(Predicate<T> condition, Consumer<T> thenConsumer, Consumer<T> elseConsumer)`
  If condition is `false`, then execute the "then" consumer, else, execute the "else" consumer.
  `static <T> PredicatedConsumer<T>`
  PredicatedConsumer.`ifTrue(Predicate<T> condition, Consumer<T> thenConsumer)`
  If condition is `true`, then execute consumer.
  `static <T> PredicatedConsumer<T>`
  PredicatedConsumer.`ifTrue(Predicate<T> condition, Consumer<T> thenConsumer, Consumer<T> elseConsumer)`
  If condition is `true`, then execute the "then" consumer, else,execute the "else" consumer.