TargetType
- Type of the targetsEstimateType
- Type of the estimatespublic class CogxelTargetEstimatePairConverter<TargetType,EstimateType> extends AbstractCogxelPairConverter<TargetType,EstimateType,TargetEstimatePair<TargetType,EstimateType>>
semanticIdentifierMap
Constructor and Description |
---|
CogxelTargetEstimatePairConverter()
Creates a new CogxelTargetEstimatePairConverter.
|
CogxelTargetEstimatePairConverter(CogxelConverter<TargetType> targetConverter,
CogxelConverter<EstimateType> estimateConverter)
Creates a new CogxelTargetEstimatePairConverter with the given
converters for each element of the pair.
|
CogxelTargetEstimatePairConverter(CogxelConverter<TargetType> targetConverter,
CogxelConverter<EstimateType> estimateConverter,
SemanticIdentifierMap semanticIdentifierMap)
Creates a new CogxelTargetEstimatePairConverter with the given
converters for each element of the pair.
|
Modifier and Type | Method and Description |
---|---|
TargetEstimatePair<TargetType,EstimateType> |
createPair(TargetType first,
EstimateType second)
Creates a Pair from the needed data
|
boolean |
equals(java.lang.Object other) |
CogxelConverter<EstimateType> |
getEstimateConverter()
Gets the converter for the estimate value.
|
CogxelConverter<TargetType> |
getTargetConverter()
Gets the converter for the target value.
|
int |
hashCode() |
void |
setEstimateConverter(CogxelConverter<EstimateType> estimateConverter)
Sets the converter for the estimate value.
|
void |
setTargetConverter(CogxelConverter<TargetType> targetConverter)
Sets the converter for the target value.
|
clone, equals, fromCogxels, getFirstConverter, getSecondConverter, setFirstConverter, setSecondConverter, setSemanticIdentifierMap, toCogxels
buildIdentifierCache, getSemanticIdentifierMap
public CogxelTargetEstimatePairConverter()
public CogxelTargetEstimatePairConverter(CogxelConverter<TargetType> targetConverter, CogxelConverter<EstimateType> estimateConverter)
targetConverter
- The CogxelConverter for the target element of the pair.estimateConverter
- The CogxelConverter for the estimate element of the pair.public CogxelTargetEstimatePairConverter(CogxelConverter<TargetType> targetConverter, CogxelConverter<EstimateType> estimateConverter, SemanticIdentifierMap semanticIdentifierMap)
targetConverter
- The CogxelConverter for the target element of the pair.estimateConverter
- The CogxelConverter for the estimate element of the pair.semanticIdentifierMap
- The SemanticIdentifierMap for the converter.public TargetEstimatePair<TargetType,EstimateType> createPair(TargetType first, EstimateType second)
AbstractCogxelPairConverter
createPair
in class AbstractCogxelPairConverter<TargetType,EstimateType,TargetEstimatePair<TargetType,EstimateType>>
first
- First element of the Pairsecond
- Second element of the Pairpublic boolean equals(java.lang.Object other)
equals
in class AbstractCogxelPairConverter<TargetType,EstimateType,TargetEstimatePair<TargetType,EstimateType>>
public int hashCode()
hashCode
in class AbstractCogxelPairConverter<TargetType,EstimateType,TargetEstimatePair<TargetType,EstimateType>>
public CogxelConverter<TargetType> getTargetConverter()
public void setTargetConverter(CogxelConverter<TargetType> targetConverter)
targetConverter
- The target converter.public CogxelConverter<EstimateType> getEstimateConverter()
public void setEstimateConverter(CogxelConverter<EstimateType> estimateConverter)
estimateConverter
- The estimate converter.