public interface ITriState
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getAsBooleanObj()
Convert the tri state value into a
Boolean value, depending on what
"undefined" means. |
default Boolean |
getAsBooleanObj(boolean bUndefinedValue)
Convert the tri state value into a
Boolean value, depending on what
"undefined" means. |
Boolean |
getAsBooleanObj(Boolean aUndefinedValue)
Convert the tri state value into a
Boolean value, depending on what
"undefined" means. |
boolean |
getAsBooleanValue()
Convert the tri state value into a boolean value.
|
boolean |
getAsBooleanValue(boolean bUndefinedValue)
Convert the tri state value into a boolean value, depending on what
"undefined" means.
|
boolean |
isDefined() |
boolean |
isFalse() |
boolean |
isTrue() |
default boolean |
isUndefined() |
boolean isTrue()
true if the value is true.boolean isFalse()
true if the value is falseboolean isDefined()
true if the value is not undefined (if it is either
true or false)default boolean isUndefined()
true if the value is undefined (if it is neither
true nor false)boolean getAsBooleanValue()
IllegalStateException is thrown.true if isTrue() is true, false
if isFalse() is true, or an exception otherwise!IllegalStateException - If this is undefinedgetAsBooleanValue(boolean)boolean getAsBooleanValue(boolean bUndefinedValue)
bUndefinedValue - The boolean representation of undefined.true if isTrue() is true, false
if isFalse() is true, or otherwise the passed parameter!getAsBooleanValue()@Nullable Boolean getAsBooleanObj()
Boolean value, depending on what
"undefined" means.Boolean.TRUE if isTrue() is true,
Boolean.FALSE if isFalse() is true,
or null!@Nonnull default Boolean getAsBooleanObj(boolean bUndefinedValue)
Boolean value, depending on what
"undefined" means.bUndefinedValue - The boolean representation of undefined.Boolean.TRUE if isTrue() is true,
Boolean.FALSE if isFalse() is true, or otherwise
the passed parameter!@Nullable Boolean getAsBooleanObj(@Nullable Boolean aUndefinedValue)
Boolean value, depending on what
"undefined" means.aUndefinedValue - The Boolean representation of undefined.Boolean.TRUE if isTrue() is true,
Boolean.FALSE if isFalse() is true, or otherwise
the passed parameter!Copyright © 2014–2020 Philip Helger. All rights reserved.