public final class BooleanExtensions extends Object
BooleanExtensions provides utility methods for handling with boolean values| Constructor and Description |
|---|
BooleanExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
toBoolean(Boolean value)
Converts the given
Boolean to a primitive boolean value
BooleanExtensions.toBoolean(Boolean.TRUE) = true
BooleanExtensions.toBoolean(Boolean.FALSE) = false
BooleanExtensions.toBoolean(null) = false
|
static <T> T |
trueOrFalse(T trueCase,
T falseCase,
boolean... flags)
Decides over the given flags if the true-case or the false-case will be return.
|
public static <T> T trueOrFalse(T trueCase,
T falseCase,
boolean... flags)
T - the generic typetrueCase - the object to return in true casefalseCase - the object to return in false caseflags - the flags whice decide what to returnCopyright © 2015–2019 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.