public enum Outcome extends java.lang.Enum<Outcome>
Enum Constant and Description |
---|
FALSE
Represents falsy values.
|
FALSE_NOT_NULL |
NULLISH |
TRUE
Represents truthy values.
|
Modifier and Type | Method and Description |
---|---|
static Outcome |
forBoolean(boolean val)
Gets the Outcome for the given boolean.
|
abstract TernaryValue |
isNullish()
Determines whether an Outcome enum value is nullish.
|
abstract boolean |
isTruthy()
Determines whether an Outcome enum value is truthy.
|
abstract Outcome |
not()
Gets the
not of this . |
static Outcome |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Outcome[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Outcome TRUE
public static final Outcome FALSE
public static final Outcome FALSE_NOT_NULL
public static final Outcome NULLISH
public static Outcome[] values()
for (Outcome c : Outcome.values()) System.out.println(c);
public static Outcome valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract boolean isTruthy()
public abstract TernaryValue isNullish()
public abstract Outcome not()
not
of this
.public static Outcome forBoolean(boolean val)
Copyright © 2009-2020 Google. All Rights Reserved.