java.io.Serializable
, java.lang.Comparable<UnicodeSetSpanner.CountMethod>
public static enum UnicodeSetSpanner.CountMethod extends java.lang.Enum<UnicodeSetSpanner.CountMethod>
Enum Constant | Description |
---|---|
MIN_ELEMENTS |
Use the smallest number of elements in the spanned range for counting and modification,
based on the
UnicodeSet.SpanCondition . |
WHOLE_SPAN |
Collapse spans.
|
Modifier and Type | Method | Description |
---|---|---|
static UnicodeSetSpanner.CountMethod |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static UnicodeSetSpanner.CountMethod[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnicodeSetSpanner.CountMethod WHOLE_SPAN
public static final UnicodeSetSpanner.CountMethod MIN_ELEMENTS
UnicodeSet.SpanCondition
.
If the set has no strings, this will be the same as the number of spanned code points.
For example, in the string "abab" with SpanCondition.SIMPLE:
public static UnicodeSetSpanner.CountMethod[] values()
for (UnicodeSetSpanner.CountMethod c : UnicodeSetSpanner.CountMethod.values()) System.out.println(c);
public static UnicodeSetSpanner.CountMethod 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 nullCopyright ? 2016 Unicode, Inc. and others.