org.nuiton.io.xpp3
Enum DefaultDataConverter
java.lang.Object
java.lang.Enum<DefaultDataConverter>
org.nuiton.io.xpp3.DefaultDataConverter
- All Implemented Interfaces:
- Serializable, Comparable<DefaultDataConverter>, DataConverter
public enum DefaultDataConverter
- extends Enum<DefaultDataConverter>
- implements DataConverter
A enumaration to convert some data from a string representation.
- Since:
- 1.0.0
- Author:
- tchemit
Boolean
public static final DefaultDataConverter Boolean
Short
public static final DefaultDataConverter Short
Integer
public static final DefaultDataConverter Integer
Long
public static final DefaultDataConverter Long
Float
public static final DefaultDataConverter Float
Double
public static final DefaultDataConverter Double
Text
public static final DefaultDataConverter Text
values
public static DefaultDataConverter[] 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 (DefaultDataConverter c : DefaultDataConverter.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static DefaultDataConverter 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 name
NullPointerException - if the argument is null
Copyright © 2009-2012 CodeLutin. All Rights Reserved.