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. |
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() |
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)boolean isUndefined()
true if the value is undefined (if it is neither
true nor false)boolean getAsBooleanValue()
throws IllegalStateException
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 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–2015 Philip Helger. All rights reserved.