public class LongConversionHandler extends Object implements TypeConversionHandler
| Modifier and Type | Field and Description |
|---|---|
static TypeConversionHandler |
INSTANCE |
| Constructor and Description |
|---|
LongConversionHandler()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getTypes()
Returns the types that this handler is responsible for.
|
Object |
toObject(String s)
Converts the string (from stream) into corresponding object.
|
String |
toString(Object o)
Converts an object into its string representation.
|
public static final TypeConversionHandler INSTANCE
public String[] getTypes()
TypeConversionHandlergetTypes in interface TypeConversionHandlerTypeConversionHandler.getTypes()public Object toObject(String s)
TypeConversionHandlertoObject in interface TypeConversionHandlers - string representation.TypeConversionHandler.toObject(java.lang.String)public String toString(Object o)
TypeConversionHandlertoString in interface TypeConversionHandlero - Object to convertTypeConversionHandler.toString(java.lang.Object)Copyright © 2014. All rights reserved.