public class LeetLevel extends Object implements Comparable<LeetLevel>
| Modifier and Type | Field and Description |
|---|---|
static LeetLevel |
LEVEL1 |
static LeetLevel |
LEVEL2 |
static LeetLevel |
LEVEL3 |
static LeetLevel |
LEVEL4 |
static LeetLevel |
LEVEL5 |
static LeetLevel |
LEVEL6 |
static LeetLevel |
LEVEL7 |
static LeetLevel |
LEVEL8 |
static LeetLevel |
LEVEL9 |
static LeetLevel[] |
LEVELS |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(LeetLevel o) |
static LeetLevel |
fromInt(int i) |
static LeetLevel |
fromString(String str)
Converts a string to a leet level.
|
int |
getLevel() |
static LeetLevel[] |
getLevels() |
int |
getOrdinal() |
String |
toString() |
public static final LeetLevel LEVEL1
public static final LeetLevel LEVEL2
public static final LeetLevel LEVEL3
public static final LeetLevel LEVEL4
public static final LeetLevel LEVEL5
public static final LeetLevel LEVEL6
public static final LeetLevel LEVEL7
public static final LeetLevel LEVEL8
public static final LeetLevel LEVEL9
public static final LeetLevel[] LEVELS
public static LeetLevel[] getLevels()
public static LeetLevel fromInt(int i)
public static LeetLevel fromString(String str) throws Exception
str - The string to parse the leet level from.Exception - upon invalid level.public int getLevel()
public int getOrdinal()
public int compareTo(LeetLevel o)
compareTo in interface Comparable<LeetLevel>Copyright © 2018. All rights reserved.