Enum BaseNAlphabet
- java.lang.Object
-
- java.lang.Enum<BaseNAlphabet>
-
- com.github.f4b6a3.uuid.codec.base.BaseNAlphabet
-
- All Implemented Interfaces:
Serializable,Comparable<BaseNAlphabet>
public enum BaseNAlphabet extends Enum<BaseNAlphabet>
Enumeration that lists the base-n alphabets of this package.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALPHABET_BASE_16ALPHABET_BASE_32ALPHABET_BASE_32_CROCKFORDALPHABET_BASE_32_HEXALPHABET_BASE_64ALPHABET_BASE_64_URL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAlphabet()BaseNgetBase()static BaseNAlphabetvalueOf(String name)Returns the enum constant of this type with the specified name.static BaseNAlphabet[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALPHABET_BASE_16
public static final BaseNAlphabet ALPHABET_BASE_16
-
ALPHABET_BASE_32
public static final BaseNAlphabet ALPHABET_BASE_32
-
ALPHABET_BASE_32_HEX
public static final BaseNAlphabet ALPHABET_BASE_32_HEX
-
ALPHABET_BASE_32_CROCKFORD
public static final BaseNAlphabet ALPHABET_BASE_32_CROCKFORD
-
ALPHABET_BASE_64
public static final BaseNAlphabet ALPHABET_BASE_64
-
ALPHABET_BASE_64_URL
public static final BaseNAlphabet ALPHABET_BASE_64_URL
-
-
Method Detail
-
values
public static BaseNAlphabet[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BaseNAlphabet c : BaseNAlphabet.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BaseNAlphabet valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getBase
public BaseN getBase()
-
getAlphabet
public String getAlphabet()
-
-