org.springframework.data.solr.core.convert
Enum NumberConverters.NumberConverter
java.lang.Object
java.lang.Enum<NumberConverters.NumberConverter>
org.springframework.data.solr.core.convert.NumberConverters.NumberConverter
- All Implemented Interfaces:
- Serializable, Comparable<NumberConverters.NumberConverter>, Converter<Number,String>
- Enclosing class:
- NumberConverters
@WritingConverter
public static enum NumberConverters.NumberConverter
- extends Enum<NumberConverters.NumberConverter>
- implements Converter<Number,String>
INSTANCE
public static final NumberConverters.NumberConverter INSTANCE
values
public static NumberConverters.NumberConverter[] 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 (NumberConverters.NumberConverter c : NumberConverters.NumberConverter.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static NumberConverters.NumberConverter 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
convert
public String convert(Number source)
- Specified by:
convert in interface Converter<Number,String>
Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.