Package com.linkedin.feathr.common.value
Class NumericFeatureValue
java.lang.Object
com.linkedin.feathr.common.value.NumericFeatureValue
- All Implemented Interfaces:
FeatureValue
A specific FeatureValue class for NUMERIC features. Underlying representation is a float primitive value.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic NumericFeatureValuefromFloat(float floatValue) floatinthashCode()toString()
-
Method Details
-
fromFloat
- Parameters:
floatValue- a float value- Returns:
- a numeric feature value for the given float value
-
getFloatValue
public float getFloatValue()- Returns:
- the contained float value
-
getFeatureType
- Specified by:
getFeatureTypein interfaceFeatureValue- Returns:
- the
FeatureTypeof this feature
-
equals
-
hashCode
public int hashCode() -
toString
-