Package com.yahoo.searchdefinition
Class RankProfile.RankSetting
- java.lang.Object
-
- com.yahoo.searchdefinition.RankProfile.RankSetting
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- RankProfile
public static class RankProfile.RankSetting extends Object implements Serializable
A rank setting. The identity of a rank setting is its field name and type (not value). A rank setting is immutable.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RankProfile.RankSetting.Type
-
Constructor Summary
Constructors Constructor Description RankSetting(String fieldName, RankProfile.RankSetting.Type type, Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
String
getFieldName()
int
getIntValue()
Returns the value as an int, or a negative value if it is not an integerRankProfile.RankSetting.Type
getType()
Object
getValue()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
RankSetting
public RankSetting(String fieldName, RankProfile.RankSetting.Type type, Object value)
-
-
Method Detail
-
getFieldName
public String getFieldName()
-
getType
public RankProfile.RankSetting.Type getType()
-
getValue
public Object getValue()
-
getIntValue
public int getIntValue()
Returns the value as an int, or a negative value if it is not an integer
-
-