Enum NumericalArgumentRanking.SortingType
- java.lang.Object
-
- java.lang.Enum<NumericalArgumentRanking.SortingType>
-
- net.sf.tweety.arg.rankings.semantics.NumericalArgumentRanking.SortingType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<NumericalArgumentRanking.SortingType>
,java.lang.constant.Constable
- Enclosing class:
- NumericalArgumentRanking
public static enum NumericalArgumentRanking.SortingType extends java.lang.Enum<NumericalArgumentRanking.SortingType>
Possible sorting types for the numerical values.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASCENDING
smallest ranking value is ranked firstDESCENDING
largest ranking value is ranked firstLEXICOGRAPHIC
first ranking value when sorted lexicographically is ranked first
-
Constructor Summary
Constructors Modifier Constructor Description private
SortingType()
-
Method Summary
Modifier and Type Method Description static NumericalArgumentRanking.SortingType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static NumericalArgumentRanking.SortingType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DESCENDING
public static final NumericalArgumentRanking.SortingType DESCENDING
largest ranking value is ranked first
-
ASCENDING
public static final NumericalArgumentRanking.SortingType ASCENDING
smallest ranking value is ranked first
-
LEXICOGRAPHIC
public static final NumericalArgumentRanking.SortingType LEXICOGRAPHIC
first ranking value when sorted lexicographically is ranked first
-
-
Method Detail
-
values
public static NumericalArgumentRanking.SortingType[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NumericalArgumentRanking.SortingType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-