Package com.linkedin.feathr.common.value
Class BooleanFeatureValue
java.lang.Object
com.linkedin.feathr.common.value.BooleanFeatureValue
- All Implemented Interfaces:
FeatureValue
A specific FeatureValue class for BOOLEAN features. Underlying representation is a boolean primitive type.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BooleanFeatureValuestatic final BooleanFeatureValue -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic BooleanFeatureValuefromBoolean(boolean value) booleaninthashCode()toString()
-
Field Details
-
FALSE
-
TRUE
-
-
Method Details
-
fromBoolean
- Parameters:
value- a boolean value- Returns:
- a BooleanFeatureValue for the provided boolean
-
getBooleanValue
public boolean getBooleanValue()- Returns:
- the contained boolean value
-
getFeatureType
- Specified by:
getFeatureTypein interfaceFeatureValue- Returns:
- the
FeatureTypeof this feature
-
equals
-
hashCode
public int hashCode() -
toString
-