public static class ObjectUtils.OrElse extends Object
Runnable depending on whether the previous operation was
executed, formulated as a boolean.| Constructor and Description |
|---|
OrElse(boolean executeRunnable)
Constructs an
ObjectUtils.OrElse with the given executeRunnable defining if the orElse(Runnable)
Runnable should be executed. |
| Modifier and Type | Method and Description |
|---|---|
void |
orElse(Runnable runnable)
Runs the given
runnable depending on whether the previous executable was invoked, formulated through
the executeRunnable set in the constructor. |
public OrElse(boolean executeRunnable)
ObjectUtils.OrElse with the given executeRunnable defining if the orElse(Runnable)
Runnable should be executed.executeRunnable - a boolean defining if the orElse(Runnable) Runnable should be
executed.Copyright © 2020–2023 AxonIQ BV. All rights reserved.