public final class StringToShortConverter extends Object implements Convertable
Modifier and Type | Method and Description |
---|---|
Object |
convert(Object value)
Converts the supplied value to a Short.
|
static StringToShortConverter |
getInstance()
Gets the single instance of this converter.
|
public static StringToShortConverter getInstance()
public Object convert(Object value)
convert
in interface Convertable
value
- The value to convert to a Short.ClassCastException
- When the supplied value is not a String.NumberFormatException
- When the supplied value could not be converted to a Short.Copyright © 2008–2018. All rights reserved.