Class StringConverter.Integer
java.lang.Object
org.apache.sis.internal.converter.ClassPair<S,T>
org.apache.sis.internal.converter.SystemConverter<String,T>
org.apache.sis.internal.converter.StringConverter<Integer>
org.apache.sis.internal.converter.StringConverter.Integer
- All Implemented Interfaces:
Serializable,Function<String,,Integer> ObjectConverter<String,Integer>
- Enclosing class:
- StringConverter<T>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.internal.converter.StringConverter
StringConverter.Angle, StringConverter.BigDecimal, StringConverter.BigInteger, StringConverter.Boolean, StringConverter.Byte, StringConverter.Charset, StringConverter.CodeList<T extends org.opengis.util.CodeList<T>>, StringConverter.Double, StringConverter.Enum<T extends Enum<T>>, StringConverter.File, StringConverter.Float, StringConverter.Integer, StringConverter.InternationalString, StringConverter.Locale, StringConverter.Long, StringConverter.Number, StringConverter.Path, StringConverter.Short, StringConverter.Unit, StringConverter.URI, StringConverter.URL -
Field Summary
FieldsFields inherited from class org.apache.sis.internal.converter.ClassPair
sourceClass, targetClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) IntegerInvoked byStringConverter.apply(String)for converting the given string to the target type of this converter.Methods inherited from class org.apache.sis.internal.converter.StringConverter
apply, createInverse, inverse, propertiesMethods inherited from class org.apache.sis.internal.converter.SystemConverter
bijective, equals, formatErrorMessage, getSourceClass, getTargetClass, readResolve, uniqueMethods inherited from class org.apache.sis.internal.converter.ClassPair
cast, hashCode, parentSource, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
Integer
public Integer()
-
-
Method Details
-
doConvert
Description copied from class:StringConverterInvoked byStringConverter.apply(String)for converting the given string to the target type of this converter.- Specified by:
doConvertin classStringConverter<Integer>- Parameters:
source- the string to convert, guaranteed to be non-null and non-empty.- Returns:
- the converted value.
- Throws:
NumberFormatException
-