Enum Class AddeEntry.EntryValidity
- All Implemented Interfaces:
Serializable
,Comparable<AddeEntry.EntryValidity>
,Constable
- Enclosing interface:
AddeEntry
Sort of a "misc" status field...
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUser has elected to remove this entry.Entry is invalid in some way.Unknown whether or not this entry actually works.Entry is being checked for validity.Entry has been verified by connecting to the server. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AddeEntry.EntryValidity
static String
toStr
(AddeEntry.EntryValidity validity) static AddeEntry.EntryValidity
Returns the enum constant of this class with the specified name.static AddeEntry.EntryValidity[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VERIFIED
Entry has been verified by connecting to the server. -
UNVERIFIED
Unknown whether or not this entry actually works. -
VALIDATING
Entry is being checked for validity. -
DELETED
User has elected to remove this entry. This is an unfortunate "special case", as we can't simply remove these entries from a list! Say the user import entries from a remote MCTABLE file and later deleted some of the imported entries. Fine, good! But what should happen if the user hears that new servers have been added to that same MCTABLE file? The entries that the user has deleted locally should not reappear, right? -
INVALID
Entry is invalid in some way.
-
-
Constructor Details
-
EntryValidity
private EntryValidity()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromStr
-
toStr
-