trait FeatureValueTypeAdaptor[T] extends AnyRef
A converter that knows how to convert back and forth between Feathr's 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.
- Alphabetic
- By Inheritance
- FeatureValueTypeAdaptor
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
fromFeathrFeatureValue(featureValue: FeatureValue): T
Convert from Feathr FeatureValue into the "other" representation.
Convert from Feathr FeatureValue into the "other" representation.
It is expected to be the inverse of
#toFeathrFeatureValue(Object)- featureValue
the feature value represented as a Feathr FeatureValue
- returns
the feature value in the "other" representation
-
abstract
def
toFeathrFeatureValue(other: T): FeatureValue
Convert from the "other" representation into Feathr FeatureValue.
Convert from the "other" representation into Feathr FeatureValue.
It is expected to be the inverse of
#fromFeathrFeatureValue(FeatureValue)- other
the feature value in the "other" representation
- returns
the feature value represented as a Feathr FeatureValue
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()