public enum Ternary extends Enum<Ternary>
Ternary enumeration implements three-valued logic (also known as
tri-state or trits). Specifically, it is used for filtering binary attributes
(such as whether a method is static or not) in a way that allows to
express that the attribute is present (TRUE), absent (FALSE),
or irrelevant for filtering (EITHER).| Modifier and Type | Method and Description |
|---|---|
static Ternary |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Ternary[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Ternary TRUE
public static final Ternary FALSE
public static final Ternary EITHER
public static Ternary[] values()
for (Ternary c : Ternary.values()) System.out.println(c);
public static Ternary valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2024. All rights reserved.