Uses of Class
com.norconex.commons.lang.function.PredicatedConsumer
Packages that use PredicatedConsumer
Package
Description
Utility classes enhancing classic Java functions.
-
Uses of PredicatedConsumer in com.norconex.commons.lang.function
Methods in com.norconex.commons.lang.function that return PredicatedConsumerModifier and TypeMethodDescriptionstatic <T> PredicatedConsumer<T> If condition isfalse, then execute consumer.static <T> PredicatedConsumer<T> PredicatedConsumer.ifFalse(Predicate<T> condition, Consumer<T> thenConsumer, Consumer<T> elseConsumer) If condition isfalse, then execute the "then" consumer, else, execute the "else" consumer.static <T> PredicatedConsumer<T> If condition istrue, then execute consumer.static <T> PredicatedConsumer<T> PredicatedConsumer.ifTrue(Predicate<T> condition, Consumer<T> thenConsumer, Consumer<T> elseConsumer) If condition istrue, then execute the "then" consumer, else,execute the "else" consumer.