public static enum BytesTrie.Result extends Enum<BytesTrie.Result>
Enum Constant and Description |
---|
FINAL_VALUE
The input unit(s) continued a matching string
and there is a value for the string so far.
|
INTERMEDIATE_VALUE
The input unit(s) continued a matching string
and there is a value for the string so far.
|
NO_MATCH
The input unit(s) did not continue a matching string.
|
NO_VALUE
The input unit(s) continued a matching string
but there is no value for the string so far.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Equivalent to (result==NO_VALUE || result==INTERMEDIATE_VALUE).
|
boolean |
hasValue()
Equivalent to (result==INTERMEDIATE_VALUE || result==FINAL_VALUE).
|
boolean |
matches()
Same as (result!
|
static BytesTrie.Result |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BytesTrie.Result[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BytesTrie.Result NO_MATCH
public static final BytesTrie.Result NO_VALUE
public static final BytesTrie.Result FINAL_VALUE
public static final BytesTrie.Result INTERMEDIATE_VALUE
public static BytesTrie.Result[] values()
for (BytesTrie.Result c : BytesTrie.Result.values()) System.out.println(c);
public static BytesTrie.Result 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 boolean matches()
public boolean hasValue()
BytesTrie.getValue()
public boolean hasNext()
Copyright © 2016 Unicode, Inc. and others.