Enum
The base class of Java enum types.
Abstract classJavaJava 11 docs
public abstract class Enum<E extends Enum<E>> implements Comparable<E>, SerializableExtended by AccountType, AdamantItem, Ancient, AreaLocations, AttackStyle, BankLocations, BarType, BronzeItem, CombatAttackStyle, CourierTaskData, EmoteID, EquipmentSlot, FreezeState.FreezeStateType, GrandExchangeSlot, Heading, IronItem, KeyCode, LayoutView, Lunar, Minigames.Destination, MithrilItem, MoveMode, Necromancy, NoticeBoardPosting, NpcLocations, Orientation, PidPriority, PortLocation, PortPaths, PortTaskTrigger, PortTaskTrigger.TaskType, PouchType, PrayerAPI, PrayerAPI.Mode, PriceSetupType, PvpArenaBuild, PvpArenaLoadoutSetup.Stage, PvpArenaLoadoutSnapshot.State, PvpArenaOpponentLoadoutSetup.Stage, PvpArenaOpponentSpellbookSync.Stage, PvpArenaSpellbook, RegionInfo, RegionInfo.AreaType, RewardsTab, Rune, RuneItem, RunePouch, RunePouchRune, SafespotResult.Status, SailingTab, Shop, ShopID, SpellBook, Staff, Standard, SteelItem, StrongholdSecurityQuestion, Tab, TanningAPI.LeatherType, TanningAPI.TanningSlot, Tome, UnlockTab.Unlocks, VarrockMuseumAnswer, Walls.Wall, WidgetInfoExtended, WorldLocation
Declare your own enum and switch on it. name(), ordinal() and valueOf work as in Java.
Also allowed
These work as in the Java 11 docs.
compareTo, equals, hashCode, name, new Enum, ordinal, toString, valueOf