Class NumericFeatureValue

java.lang.Object
com.linkedin.feathr.common.value.NumericFeatureValue
All Implemented Interfaces:
FeatureValue

public class NumericFeatureValue extends Object implements FeatureValue
A specific FeatureValue class for NUMERIC features. Underlying representation is a float primitive value.
  • Method Details

    • fromFloat

      public static NumericFeatureValue fromFloat(float floatValue)
      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

      public FeatureType getFeatureType()
      Specified by:
      getFeatureType in interface FeatureValue
      Returns:
      the FeatureType of this feature
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object