Class DefaultHandlers.IntegerHandler
java.lang.Object
com.ubs.backend.annotations.json.handlers.DefaultHandlers.IntegerHandler
- All Implemented Interfaces:
ElementHandler
- Enclosing class:
- DefaultHandlers
Handles Integers
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IntegerHandler
public IntegerHandler()
-
-
Method Details
-
handle
Converts an Integer into a String for a JSON Object- Specified by:
handlein interfaceElementHandler- Parameters:
o- the Object to convert- Returns:
- the Converted JSON String
- Throws:
ElementTypeException- if the Object cannot be converted
-
getType
- Specified by:
getTypein interfaceElementHandler- Returns:
- the Type of the Handler (INTEGER)
- See Also:
JSONType
-
canHandle
- Specified by:
canHandlein interfaceElementHandler- Parameters:
o- the object to check- Returns:
- if the object is instance of a Integer Number
-