org.cubeengine.converter.converter
Class IntegerConverter

java.lang.Object
  extended by org.cubeengine.converter.converter.SimpleConverter<Integer>
      extended by org.cubeengine.converter.converter.IntegerConverter
All Implemented Interfaces:
ClassedConverter<Integer>, Converter<Integer,Class<? extends Integer>>

public class IntegerConverter
extends SimpleConverter<Integer>

A Converter for Integer


Constructor Summary
IntegerConverter()
           
 
Method Summary
 Integer fromNode(Node node)
          Converts the node back into the original object
 Node toNode(Integer object)
          Converts the object into a serializable Node
 
Methods inherited from class org.cubeengine.converter.converter.SimpleConverter
fromNode, toNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerConverter

public IntegerConverter()
Method Detail

toNode

public Node toNode(Integer object)
            throws ConversionException
Description copied from class: SimpleConverter
Converts the object into a serializable Node

Specified by:
toNode in class SimpleConverter<Integer>
Parameters:
object - the object to convert
Returns:
the converted object
Throws:
ConversionException

fromNode

public Integer fromNode(Node node)
                 throws ConversionException
Description copied from class: SimpleConverter
Converts the node back into the original object

Specified by:
fromNode in class SimpleConverter<Integer>
Parameters:
node - the node to convert
Returns:
the converted node
Throws:
ConversionException


Copyright © 2013–2017. All rights reserved.