Package com.arakelian.faker.reader
Enum TextReader.Type
- java.lang.Object
-
- java.lang.Enum<TextReader.Type>
-
- com.arakelian.faker.reader.TextReader.Type
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TextReader.Type>
- Enclosing class:
- TextReader<T>
public static enum TextReader.Type extends java.lang.Enum<TextReader.Type>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.Objectparse(java.lang.String value)static TextReader.TypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TextReader.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRING
public static final TextReader.Type STRING
-
INT
public static final TextReader.Type INT
-
LONG
public static final TextReader.Type LONG
-
DOUBLE
public static final TextReader.Type DOUBLE
-
-
Method Detail
-
values
public static TextReader.Type[] 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 (TextReader.Type c : TextReader.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TextReader.Type valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
parse
public abstract java.lang.Object parse(java.lang.String value)
-
-