public static enum Fn2.Singletons extends Enum<Fn2.Singletons> implements Fn2
Fn2.Singletons| Enum Constant and Description |
|---|
FIRST
A static function that always returns the first argument it is given.
|
SECOND
A static function that always returns the second argument it is given.
|
| Modifier and Type | Method and Description |
|---|---|
static Fn2.Singletons |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Fn2.Singletons[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfapply, applyEx, first, memoize, secondandThenpublic static final Fn2.Singletons FIRST
Fn2.first() instead of accessing this dirctly.public static final Fn2.Singletons SECOND
Fn2.second() instead of accessing this dirctly.public static Fn2.Singletons[] values()
for (Fn2.Singletons c : Fn2.Singletons.values()) System.out.println(c);
public static Fn2.Singletons 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 © 2019. All rights reserved.