Package com.github.alex1304.jdash.util
Enum LevelSearchStrategy
- java.lang.Object
-
- java.lang.Enum<LevelSearchStrategy>
-
- com.github.alex1304.jdash.util.LevelSearchStrategy
-
- All Implemented Interfaces:
Serializable
,Comparable<LevelSearchStrategy>
public enum LevelSearchStrategy extends Enum<LevelSearchStrategy>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AWARDED
BY_USER
FEATURED
FOLLOWED
HALL_OF_FAME
MAGIC
MOST_DOWNLOADED
MOST_LIKED
RECENT
REGULAR
TRENDING
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getVal()
static LevelSearchStrategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static LevelSearchStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REGULAR
public static final LevelSearchStrategy REGULAR
-
MOST_DOWNLOADED
public static final LevelSearchStrategy MOST_DOWNLOADED
-
MOST_LIKED
public static final LevelSearchStrategy MOST_LIKED
-
TRENDING
public static final LevelSearchStrategy TRENDING
-
RECENT
public static final LevelSearchStrategy RECENT
-
BY_USER
public static final LevelSearchStrategy BY_USER
-
FEATURED
public static final LevelSearchStrategy FEATURED
-
MAGIC
public static final LevelSearchStrategy MAGIC
-
AWARDED
public static final LevelSearchStrategy AWARDED
-
FOLLOWED
public static final LevelSearchStrategy FOLLOWED
-
HALL_OF_FAME
public static final LevelSearchStrategy HALL_OF_FAME
-
-
Method Detail
-
values
public static LevelSearchStrategy[] 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 (LevelSearchStrategy c : LevelSearchStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LevelSearchStrategy 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
-
getVal
public int getVal()
-
-