public enum Bits extends Enum<Bits>
| Enum Constant and Description |
|---|
NUM
Represents num.
|
STR
Represents str.
|
| Modifier and Type | Method and Description |
|---|---|
int |
bits()
Returns the attribute bits.
|
static BitSet |
fromString(String valInString)
Returns the object of bits fromString input String bits.
|
static Bits |
of(int value)
Returns the object of bits for.
|
static Bits |
of(String value)
Returns the object of bits for.
|
static String |
toString(BitSet bits) |
static Bits |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Bits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Bits STR
public static final Bits NUM
public static Bits[] values()
for (Bits c : Bits.values()) System.out.println(c);
public static Bits 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 static Bits of(int value)
value - value of bits forpublic static Bits of(String value)
value - value of bits forpublic int bits()
public static BitSet fromString(String valInString)
valInString - value of input StringCopyright © 2018. All rights reserved.