Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fr.bluebird.report;
- import net.md_5.bungee.api.ChatColor;
- public enum IssueStatus {
- OPEN(0, ChatColor.GREEN + "Ouverte"), CLOSED(1, ChatColor.RED + "Ferme"), INVALID(2, ChatColor.GOLD + "Invalide");
- private final int index;
- private final String name;
- private IssueStatus(int index, String name) {
- this.index = index;
- this.name = name;
- }
- public int getIndex() {
- return index;
- }
- public String getName() {
- return name;
- }
- public static IssueStatus valueOf(int index) {
- for(IssueStatus status : values())
- if(status.getIndex() == index)
- return status;
- return null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement