gov.sandia.cognition.data.convert
Interface ReversibleDataConverter<InputType,OutputType>

Type Parameters:
InputType - The input type to convert from.
OutputType - The output type to convert to.
All Superinterfaces:
DataConverter<InputType,OutputType>, Evaluator<InputType,OutputType>, ReversibleEvaluator<InputType,OutputType,DataConverter<? super OutputType,? extends InputType>>
All Known Implementing Classes:
AbstractReverseCachedDataConverter, AbstractReversibleDataConverter, DefaultBooleanToNumberConverter, DefaultBooleanToNumberConverter.Reverse, IdentityDataConverter, StringToDoubleConverter, StringToIntegerConverter

public interface ReversibleDataConverter<InputType,OutputType>
extends DataConverter<InputType,OutputType>, ReversibleEvaluator<InputType,OutputType,DataConverter<? super OutputType,? extends InputType>>

Represents a DataConverter whose conversion can be reversed. The reverse is just another DataConverter. It is required that the converter's range must be part of the domain of the reverse converter.

Since:
3.0
Author:
Justin Basilico

Method Summary
 DataConverter<? super OutputType,? extends InputType> reverse()
          Gets the data converter that performs the reverse conversion.
 
Methods inherited from interface gov.sandia.cognition.evaluator.Evaluator
evaluate
 

Method Detail

reverse

DataConverter<? super OutputType,? extends InputType> reverse()
Gets the data converter that performs the reverse conversion.

Specified by:
reverse in interface ReversibleEvaluator<InputType,OutputType,DataConverter<? super OutputType,? extends InputType>>
Returns:
The reverse converter.