Enum ScoringFunctionInterpolation
- java.lang.Object
-
- java.lang.Enum<ScoringFunctionInterpolation>
-
- com.azure.search.documents.indexes.models.ScoringFunctionInterpolation
-
- All Implemented Interfaces:
Serializable
,Comparable<ScoringFunctionInterpolation>
public enum ScoringFunctionInterpolation extends Enum<ScoringFunctionInterpolation>
Defines values for ScoringFunctionInterpolation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONSTANT
Enum value constant.LINEAR
Enum value linear.LOGARITHMIC
Enum value logarithmic.QUADRATIC
Enum value quadratic.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ScoringFunctionInterpolation
fromString(String value)
Parses a serialized value to a ScoringFunctionInterpolation instance.String
toString()
static ScoringFunctionInterpolation
valueOf(String name)
Returns the enum constant of this type with the specified name.static ScoringFunctionInterpolation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LINEAR
public static final ScoringFunctionInterpolation LINEAR
Enum value linear.
-
CONSTANT
public static final ScoringFunctionInterpolation CONSTANT
Enum value constant.
-
QUADRATIC
public static final ScoringFunctionInterpolation QUADRATIC
Enum value quadratic.
-
LOGARITHMIC
public static final ScoringFunctionInterpolation LOGARITHMIC
Enum value logarithmic.
-
-
Method Detail
-
values
public static ScoringFunctionInterpolation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ScoringFunctionInterpolation c : ScoringFunctionInterpolation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ScoringFunctionInterpolation valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromString
public static ScoringFunctionInterpolation fromString(String value)
Parses a serialized value to a ScoringFunctionInterpolation instance.- Parameters:
value
- the serialized value to parse.- Returns:
- the parsed ScoringFunctionInterpolation object, or null if unable to parse.
-
toString
public String toString()
- Overrides:
toString
in classEnum<ScoringFunctionInterpolation>
-
-