gov.sandia.cognition.data.convert.number
Class DefaultBooleanToNumberConverter.Reverse

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.data.convert.AbstractDataConverter<InputType,OutputType>
          extended by gov.sandia.cognition.data.convert.AbstractReversibleDataConverter<Number,Boolean>
              extended by gov.sandia.cognition.data.convert.number.DefaultBooleanToNumberConverter.Reverse
All Implemented Interfaces:
DataConverter<Number,Boolean>, ReversibleDataConverter<Number,Boolean>, Evaluator<Number,Boolean>, ReversibleEvaluator<Number,Boolean,DataConverter<? super Boolean,? extends Number>>, CloneableSerializable, Serializable, Cloneable
Enclosing class:
DefaultBooleanToNumberConverter

public class DefaultBooleanToNumberConverter.Reverse
extends AbstractReversibleDataConverter<Number,Boolean>

The reverse converter for the DefaultBooleanToNumberConverter.

See Also:
Serialized Form

Constructor Summary
DefaultBooleanToNumberConverter.Reverse()
          Creates a new reverse converter for the DefaultBooleanToNumberConverter.
 
Method Summary
 Boolean evaluate(Number input)
          Converts the given number to a boolean.
 DefaultBooleanToNumberConverter reverse()
          Reverses the converter, which is the original converter.
 
Methods inherited from class gov.sandia.cognition.util.AbstractCloneableSerializable
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBooleanToNumberConverter.Reverse

public DefaultBooleanToNumberConverter.Reverse()
Creates a new reverse converter for the DefaultBooleanToNumberConverter.

Method Detail

evaluate

public Boolean evaluate(Number input)
Converts the given number to a boolean.

Parameters:
input - The input number to convert.
Returns:
The boolean whose number representation is closest: true or false.

reverse

public DefaultBooleanToNumberConverter reverse()
Reverses the converter, which is the original converter.

Returns:
The original DefaultBooleanToNumberConverter.