34 lines
637 B
Java
34 lines
637 B
Java
|
|
package org.r0r5chach;
|
||
|
|
|
||
|
|
import java.util.Locale;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* All levels a ValorantPlayer can be
|
||
|
|
* @author r0r5chach
|
||
|
|
*/
|
||
|
|
public enum Rank {
|
||
|
|
/**
|
||
|
|
* First Level
|
||
|
|
*/
|
||
|
|
BRONZE,
|
||
|
|
/**
|
||
|
|
* Second Level
|
||
|
|
*/
|
||
|
|
SILVER,
|
||
|
|
/**
|
||
|
|
* Third Level
|
||
|
|
*/
|
||
|
|
GOLD,
|
||
|
|
/**
|
||
|
|
* Four Level
|
||
|
|
*/
|
||
|
|
PLATINUM;
|
||
|
|
/**
|
||
|
|
* Get the name of a level
|
||
|
|
* @return a formatted string containing the level name
|
||
|
|
*/
|
||
|
|
public String getRank() {
|
||
|
|
return this.name().charAt(0) + this.name().substring(1).toLowerCase(Locale.ROOT); //Capitalizes the first letter and makes sure the other letters are lowercase
|
||
|
|
}
|
||
|
|
}
|