Package nl.basjes.parse.core
Enum Casts
- java.lang.Object
-
- java.lang.Enum<Casts>
-
- nl.basjes.parse.core.Casts
-
- All Implemented Interfaces:
Serializable,Comparable<Casts>
public enum Casts extends Enum<Casts>
-
-
Field Summary
Fields Modifier and Type Field Description static EnumSet<Casts>DOUBLE_ONLYstatic EnumSet<Casts>LONG_ONLYstatic EnumSet<Casts>NO_CASTSstatic EnumSet<Casts>STRING_ONLYstatic EnumSet<Casts>STRING_OR_DOUBLEstatic EnumSet<Casts>STRING_OR_LONGstatic EnumSet<Casts>STRING_OR_LONG_OR_DOUBLE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CastsvalueOf(String name)Returns the enum constant of this type with the specified name.static Casts[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static Casts[] 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 (Casts c : Casts.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Casts 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
-
-