T - the other, alternative FeatureValue representationpublic interface FeatureValueTypeAdaptor<T>
FeatureValue and some other
representation. Implementations' "to" and "from" methods are expected to be inverses of each other, such that
toFeathrFeatureValue(fromFeathrFeatureValue(x)) = x and fromFeathrFeatureValue(toFeathrFeatureValue(x)) = x,
for any instance 'x' of FeatureValue.
NOTE: This class is intended for advanced users only, and specifically as a "migration aid" for migrating from
some previous versions of Feathr whose FeatureValue representations had a different class name, while preserving
compatibility with feature definitions written against those older versions of Feathr.| Modifier and Type | Method and Description |
|---|---|
T |
fromFeathrFeatureValue(FeatureValue featureValue)
Convert from Feathr FeatureValue into the "other" representation.
|
FeatureValue |
toFeathrFeatureValue(T other)
Convert from the "other" representation into Feathr FeatureValue.
|
FeatureValue toFeathrFeatureValue(T other)
fromFeathrFeatureValue(FeatureValue)other - the feature value in the "other" representationT fromFeathrFeatureValue(FeatureValue featureValue)
toFeathrFeatureValue(Object)featureValue - the feature value represented as a Feathr FeatureValue