public enum PointFormatter extends Enum<PointFormatter> implements Converter<String,Point>, Formatter<Point>
Point
.Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Field and Description |
---|---|
static GenericConverter.ConvertiblePair |
CONVERTIBLE |
Modifier and Type | Method and Description |
---|---|
Point |
convert(String source) |
Point |
parse(String text,
Locale locale) |
String |
print(Point point,
Locale locale) |
static PointFormatter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PointFormatter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PointFormatter INSTANCE
public static final GenericConverter.ConvertiblePair CONVERTIBLE
public static PointFormatter[] values()
for (PointFormatter c : PointFormatter.values()) System.out.println(c);
public static PointFormatter valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Point parse(String text, Locale locale) throws ParseException
parse
in interface Parser<Point>
ParseException
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.