public enum Immutable extends Enum<Immutable>
Should the constructor list be immutable?.
http://codelet.aliteralmind.com, https://github.com/aliteralmind/codeletAllSimpleParamSignatures#newConstructorList| Modifier and Type | Method and Description |
|---|---|
static Immutable |
getForBoolean(boolean flag)
Return
Immutable.YES if the flag is true, or NO if false. |
boolean |
isNo()
Is this
Immutable equal to NO?. |
boolean |
isYes()
Is this
Immutable equal to YES?. |
static Immutable |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Immutable[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Immutable[] values()
for (Immutable c : Immutable.values()) System.out.println(c);
public static Immutable 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 nullpublic final boolean isYes()
Is this Immutable equal to YES?.
public static final Immutable getForBoolean(boolean flag)
Return Immutable.YES if the flag is true, or NO if false.
Copyright 2014, Jeff Epstein, All Rights Reserved. See top of source code files for copyright notice.
https://github.com/aliteralmind/codelet