Enum Constant and Description |
---|
OK |
TRY_WITH_LEADING_SLASH |
WRONG_METHOD |
WRONG_URL |
Modifier and Type | Method and Description |
---|---|
boolean |
isBetter(Match other) |
static Match |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Match[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Match OK
public static final Match WRONG_METHOD
public static final Match TRY_WITH_LEADING_SLASH
public static final Match WRONG_URL
public static Match[] values()
for (Match c : Match.values()) System.out.println(c);
public static Match 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 boolean isBetter(Match other)
Copyright © 2013. All Rights Reserved.