public enum NetworkQualityLevel extends java.lang.Enum<NetworkQualityLevel>
Enum Constant and Description |
---|
Bad
Orange or Yellow; 3/5 stars: incoming packet loss
|
None
Black or Gray; 1/5 stars: No incoming packets at all
|
Normal
Green; 4/5 stars: very low incoming packet loss
|
Pending
Gray; 0/5 stars (grayed?): qualification is pending
|
Perfect
Green or Blue; 5/5 shiny stars: no incoming packet loss
|
VeryBad
Red; 2/5 stars: heavy incoming packet loss
|
Modifier and Type | Method and Description |
---|---|
static NetworkQualityLevel |
fromInt(int i) |
static NetworkQualityLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NetworkQualityLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NetworkQualityLevel Pending
public static final NetworkQualityLevel None
public static final NetworkQualityLevel VeryBad
public static final NetworkQualityLevel Bad
public static final NetworkQualityLevel Normal
public static final NetworkQualityLevel Perfect
public static NetworkQualityLevel[] values()
for (NetworkQualityLevel c : NetworkQualityLevel.values()) System.out.println(c);
public static NetworkQualityLevel valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static NetworkQualityLevel fromInt(int i)