Package org.apache.abdera.i18n.text
Class Codepoint
java.lang.Object
org.apache.abdera.i18n.text.Codepoint
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Codepoint>
@Deprecated(since="2021-07-29")
public class Codepoint
extends Object
implements Serializable, Cloneable, Comparable<Codepoint>
Deprecated.
This API is deprecated as Apache Abdera is a retired project since 2017.
Represents a single Unicode Codepoint
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCodepoint(byte[] bytes) Deprecated.Create a Codepoint from a byte array using the default encoding (UTF-8)Deprecated.Create a Codepoint from a byte array with the specified charset encoding.Codepoint(char value) Deprecated.Create a codepoint from a single charCodepoint(char high, char low) Deprecated.Create a codepoint from a surrogate pairCodepoint(int value) Deprecated.Create a codepoint from a specific integer valueCodepoint(CharSequence value) Deprecated.Create a Codepoint from a CharSequence.Deprecated.Create a codepoint as a copy of another codepoint -
Method Summary
Modifier and TypeMethodDescriptionclone()Deprecated.intDeprecated.booleanDeprecated.intDeprecated.Get the number of chars necessary to represent this codepoint.charDeprecated.Get the high surrogate of this CodepointcharDeprecated.Get the low surrogate of this CodepointintgetPlane()Deprecated.Plane 0 (0000–FFFF): Basic Multilingual Plane (BMP).intgetValue()Deprecated.The codepoint valueinthashCode()Deprecated.booleanisAlpha()Deprecated.booleanDeprecated.booleanisBidi()Deprecated.True if this Codepoint is a bidi control charbooleanisDigit()Deprecated.booleanDeprecated.True if this codepoint is a high surrogatebooleanDeprecated.True if this codepoint is a low surrogatebooleanDeprecated.True if this codepoint is supplementarynext()Deprecated.Get the next codepointprevious()Deprecated.Get the previous codepointbyte[]toBytes()Deprecated.byte[]Deprecated.char[]toChars()Deprecated.toString()Deprecated.
-
Constructor Details
-
Codepoint
public Codepoint(byte[] bytes) Deprecated.Create a Codepoint from a byte array using the default encoding (UTF-8) -
Codepoint
Deprecated.Create a Codepoint from a byte array with the specified charset encoding. Length must equal 1- Throws:
UnsupportedEncodingException
-
Codepoint
Deprecated.Create a Codepoint from a CharSequence. Length must equal 1 -
Codepoint
public Codepoint(char value) Deprecated.Create a codepoint from a single char -
Codepoint
public Codepoint(char high, char low) Deprecated.Create a codepoint from a surrogate pair -
Codepoint
Deprecated.Create a codepoint as a copy of another codepoint -
Codepoint
public Codepoint(int value) Deprecated.Create a codepoint from a specific integer value
-
-
Method Details
-
getValue
public int getValue()Deprecated.The codepoint value -
isSupplementary
public boolean isSupplementary()Deprecated.True if this codepoint is supplementary -
isLowSurrogate
public boolean isLowSurrogate()Deprecated.True if this codepoint is a low surrogate -
isHighSurrogate
public boolean isHighSurrogate()Deprecated.True if this codepoint is a high surrogate -
getHighSurrogate
public char getHighSurrogate()Deprecated.Get the high surrogate of this Codepoint -
getLowSurrogate
public char getLowSurrogate()Deprecated.Get the low surrogate of this Codepoint -
isBidi
public boolean isBidi()Deprecated.True if this Codepoint is a bidi control char -
isDigit
public boolean isDigit()Deprecated. -
isAlpha
public boolean isAlpha()Deprecated. -
isAlphaDigit
public boolean isAlphaDigit()Deprecated. -
compareTo
Deprecated.- Specified by:
compareToin interfaceComparable<Codepoint>
-
toString
Deprecated. -
toChars
public char[] toChars()Deprecated. -
getCharCount
public int getCharCount()Deprecated.Get the number of chars necessary to represent this codepoint. Returns 2 if this is a supplementary codepoint -
toBytes
public byte[] toBytes()Deprecated. -
toBytes
Deprecated.- Throws:
UnsupportedEncodingException
-
hashCode
public int hashCode()Deprecated. -
equals
Deprecated. -
getPlane
public int getPlane()Deprecated.Plane 0 (0000–FFFF): Basic Multilingual Plane (BMP). This is the plane containing most of the character assignments so far. A primary objective for the BMP is to support the unification of prior character sets as well as characters for writing systems in current use. Plane 1 (10000–1FFFF): Supplementary Multilingual Plane (SMP). Plane 2 (20000–2FFFF): Supplementary Ideographic Plane (SIP) Planes 3 to 13 (30000–DFFFF) are unassigned Plane 14 (E0000–EFFFF): Supplementary Special-purpose Plane (SSP) Plane 15 (F0000–FFFFF) reserved for the Private Use Area (PUA) Plane 16 (100000–10FFFF), reserved for the Private Use Area (PUA) -
clone
Deprecated. -
next
Deprecated.Get the next codepoint -
previous
Deprecated.Get the previous codepoint
-