public enum SurrogatePairPolicy extends Enum<SurrogatePairPolicy>
Enum Constant and Description |
---|
DISCARD
The entire pair, including the low and high surrogate, will be discarded.
|
KEEP
The entire pair, including the low and high surrogate, will be kept.
|
SPLIT
Splits the surrogate pair, causing undefined or incorrect Unicode characters.
|
Modifier and Type | Method and Description |
---|---|
static SurrogatePairPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SurrogatePairPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SurrogatePairPolicy SPLIT
public static final SurrogatePairPolicy KEEP
public static final SurrogatePairPolicy DISCARD
public static SurrogatePairPolicy[] values()
for (SurrogatePairPolicy c : SurrogatePairPolicy.values()) System.out.println(c);
public static SurrogatePairPolicy 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 nullCopyright © 2022 Frostphyr. All rights reserved.