Class ObjectUtils.OrElse
- java.lang.Object
-
- io.axoniq.axonserver.connector.impl.ObjectUtils.OrElse
-
- Enclosing class:
- ObjectUtils
public static class ObjectUtils.OrElse extends Object
Class allowing the invocation of a givenRunnabledepending on whether the previous operation was executed, formulated as aboolean.
-
-
Constructor Summary
Constructors Constructor Description OrElse(boolean executeRunnable)Constructs anObjectUtils.OrElsewith the givenexecuteRunnabledefining if theorElse(Runnable)Runnableshould be executed.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidorElse(Runnable runnable)Runs the givenrunnabledepending on whether the previous executable was invoked, formulated through theexecuteRunnableset in the constructor.
-
-
-
Constructor Detail
-
OrElse
public OrElse(boolean executeRunnable)
Constructs anObjectUtils.OrElsewith the givenexecuteRunnabledefining if theorElse(Runnable)Runnableshould be executed.- Parameters:
executeRunnable- abooleandefining if theorElse(Runnable)Runnableshould be executed.
-
-