Enum Class PointFormatter
- All Implemented Interfaces:
Serializable
,Comparable<PointFormatter>
,Constable
,org.springframework.core.convert.converter.Converter<String,
,Point> org.springframework.format.Formatter<Point>
,org.springframework.format.Parser<Point>
,org.springframework.format.Printer<Point>
public enum PointFormatter
extends Enum<PointFormatter>
implements org.springframework.core.convert.converter.Converter<String,Point>, org.springframework.format.Formatter<Point>
Converter to parse two comma-separated doubles into a
Point
.- Author:
- Oliver Gierke
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.springframework.core.convert.converter.GenericConverter.ConvertiblePair
-
Method Summary
Modifier and TypeMethodDescriptionstatic PointFormatter
Returns the enum constant of this class with the specified name.static PointFormatter[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Enum Constant Details
-
INSTANCE
-
-
Field Details
-
CONVERTIBLE
public static final org.springframework.core.convert.converter.GenericConverter.ConvertiblePair CONVERTIBLE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
convert
-
print
- Specified by:
print
in interfaceorg.springframework.format.Printer<Point>
-
parse
- Specified by:
parse
in interfaceorg.springframework.format.Parser<Point>
- Throws:
ParseException
-