public enum Shard extends Enum<Shard>
| Modifier and Type | Method and Description |
|---|---|
static Shard |
getShardByShortCode(String shortCode) |
String |
getShardRegion() |
String |
getShortCode() |
static Shard |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Shard[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Shard NA
public static final Shard EU
public static final Shard SEA
public static final Shard EA
public static final Shard SA
public static final Shard CN
public static Shard[] values()
for (Shard c : Shard.values()) System.out.println(c);
public static Shard valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getShortCode()
public String getShardRegion()
Copyright © 2017. All rights reserved.