org.cubeengine.converter.converter
Class BooleanConverter

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

public class BooleanConverter
extends SimpleConverter<Boolean>

A Converter for Boolean


Constructor Summary
BooleanConverter()
           
 
Method Summary
 Boolean fromNode(Node node)
          Converts the node back into the original object
 Node toNode(Boolean 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

BooleanConverter

public BooleanConverter()
Method Detail

toNode

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

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

fromNode

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

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


Copyright © 2013–2017. All rights reserved.