@NotThreadSafe public final class Codepoint extends Object implements Serializable, Comparable<Codepoint>
| Constructor and Description |
|---|
Codepoint(byte[] bytes,
Charset encoding)
Create a Codepoint from a byte array with the specified charset encoding.
|
Codepoint(char value)
Create a codepoint from a single char
|
Codepoint(char[] value)
Create a Codepoint from a char array.
|
Codepoint(char high,
char low)
Create a codepoint from a surrogate pair
|
Codepoint(CharSequence value)
Create a Codepoint from a CharSequence.
|
Codepoint(Codepoint aCodepoint)
Create a codepoint as a copy of another codepoint
|
Codepoint(int nValue)
Create a codepoint from a specific integer value
|
Codepoint(String value)
Create a Codepoint from a String.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Codepoint o) |
boolean |
equals(Object o) |
byte[] |
getAsBytes(Charset aCharset) |
char[] |
getAsChars() |
String |
getAsString() |
int |
getCharCount() |
char |
getHighSurrogate()
Get the high surrogate of this Codepoint
|
char |
getLowSurrogate()
Get the low surrogate of this Codepoint
|
int |
getPlane()
Plane 0 (0000–FFFF): Basic Multilingual Plane (BMP).
|
int |
getValue()
The codepoint value
|
int |
hashCode() |
boolean |
isAlpha() |
boolean |
isAlphaDigit() |
boolean |
isBidi()
True if this Codepoint is a bidi control char
|
boolean |
isDigit() |
boolean |
isHighSurrogate()
True if this codepoint is a high surrogate
|
boolean |
isLowSurrogate()
True if this codepoint is a low surrogate
|
boolean |
isSupplementary()
True if this codepoint is supplementary
|
Codepoint |
next()
Get the next codepoint
|
Codepoint |
previous()
Get the previous codepoint
|
public Codepoint(@Nonnull byte[] bytes, @Nonnull Charset encoding)
public Codepoint(@Nonnull CharSequence value)
public Codepoint(@Nonnull String value)
public Codepoint(@Nonnull char[] value)
public Codepoint(char value)
public Codepoint(char high,
char low)
public Codepoint(@Nonnull Codepoint aCodepoint)
public Codepoint(@Nonnegative int nValue)
@Nonnegative public int getValue()
public boolean isSupplementary()
public boolean isLowSurrogate()
public boolean isHighSurrogate()
public char getHighSurrogate()
public char getLowSurrogate()
public boolean isBidi()
public boolean isDigit()
public boolean isAlpha()
public boolean isAlphaDigit()
@Nonnull @ReturnsMutableCopy public char[] getAsChars()
@Nonnegative public int getCharCount()
public int getPlane()
public int compareTo(@Nonnull Codepoint o)
compareTo in interface Comparable<Codepoint>Copyright © 2006–2014 phloc systems. All rights reserved.