docs/javadoc/reference/com/facebook/common/util/TriState.html
|
|
Summary: Enums | Methods | Inherited Methods | [Expand All]
public final enum
extends Enum<E extends Enum<E>>
| java.lang.Object | | ↳ | java.lang.Enum<E extends java.lang.Enum<E>> | | | ↳ | com.facebook.common.util.TriState |
Generic tri-state enum for boolean values that can also be unset.
| Enum Values |
|---|
| TriState |
| TriState |
| TriState |
| Public Methods |
|---|
| boolean |
Returns the boolean value that corresponds to this TriState, if appropriate. |
| boolean |
Returns the boolean value that corresponds to this TriState, if appropriate. |
| Boolean |
Returns the Boolean value that corresponds to this TriState, if appropriate. |
| static TriState |
| int |
| boolean |
| static TriState |
| static TriState |
Returns the value of the TriState enum that corresponds to the specified boolean. |
| static TriState |
| final static TriState[] |
| [Expand] Inherited Methods | | --- | | From class java.lang.Enum
| final Object | clone() | | final int | compareTo(E arg0) | | int | compareTo(Object arg0) | | final boolean | equals(Object arg0) | | final void | finalize() | | final Class<E> | getDeclaringClass() | | final int | hashCode() | | final String | name() | | final int | ordinal() | | String | toString() | | static <T extends Enum<T>> T | valueOf(Class<T> arg0, String arg1) |
| | From class java.lang.Object
| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |
| | From interface java.lang.Comparable
| abstract int | compareTo(T arg0) |
|
Returns the boolean value that corresponds to this TriState, if appropriate.
| defaultValue | default value to use if not set |
true if this is YES or false if this is NO or defaultValue if this is UNSET.Returns the boolean value that corresponds to this TriState, if appropriate.
true if this is YES or false if this is NO| IllegalStateException | if this is UNSET. |
Returns the Boolean value that corresponds to this TriState, if appropriate.
TRUE if this is YES or FALSE if this is NO or null if this is UNSET.Returns the value of the TriState enum that corresponds to the specified boolean.
This method deliberately declares boolean as its param type rather than Boolean because:
boolean for its nullability should replace the Boolean with a TriState, anyway.+Generated by Doclava. +