Package org.apache.abdera.i18n.text
Class Codepoint
- java.lang.Object
-
- org.apache.abdera.i18n.text.Codepoint
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Comparable<Codepoint>
@Deprecated(since="2021-07-29") public class Codepoint extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<Codepoint>
Deprecated.This API is deprecated as Apache Abdera is a retired project since 2017.Represents a single Unicode Codepoint- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Codepoint(byte[] bytes)Deprecated.Create a Codepoint from a byte array using the default encoding (UTF-8)Codepoint(byte[] bytes, java.lang.String encoding)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(java.lang.CharSequence value)Deprecated.Create a Codepoint from a CharSequence.Codepoint(Codepoint codepoint)Deprecated.Create a codepoint as a copy of another codepoint
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Codepointclone()Deprecated.intcompareTo(Codepoint o)Deprecated.booleanequals(java.lang.Object obj)Deprecated.intgetCharCount()Deprecated.Get the number of chars necessary to represent this codepoint.chargetHighSurrogate()Deprecated.Get the high surrogate of this CodepointchargetLowSurrogate()Deprecated.Get the low surrogate of this CodepointintgetPlane()Deprecated.Plane 0 (0000–FFFF): Basic Multilingual Plane (BMP).intgetValue()Deprecated.The codepoint valueinthashCode()Deprecated.booleanisAlpha()Deprecated.booleanisAlphaDigit()Deprecated.booleanisBidi()Deprecated.True if this Codepoint is a bidi control charbooleanisDigit()Deprecated.booleanisHighSurrogate()Deprecated.True if this codepoint is a high surrogatebooleanisLowSurrogate()Deprecated.True if this codepoint is a low surrogatebooleanisSupplementary()Deprecated.True if this codepoint is supplementaryCodepointnext()Deprecated.Get the next codepointCodepointprevious()Deprecated.Get the previous codepointbyte[]toBytes()Deprecated.byte[]toBytes(java.lang.String encoding)Deprecated.char[]toChars()Deprecated.java.lang.StringtoString()Deprecated.
-
-
-
Constructor Detail
-
Codepoint
public Codepoint(byte[] bytes)
Deprecated.Create a Codepoint from a byte array using the default encoding (UTF-8)
-
Codepoint
public Codepoint(byte[] bytes, java.lang.String encoding) throws java.io.UnsupportedEncodingExceptionDeprecated.Create a Codepoint from a byte array with the specified charset encoding. Length must equal 1- Throws:
java.io.UnsupportedEncodingException
-
Codepoint
public Codepoint(java.lang.CharSequence value)
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
public Codepoint(Codepoint 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 Detail
-
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
public int compareTo(Codepoint o)
Deprecated.- Specified by:
compareToin interfacejava.lang.Comparable<Codepoint>
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
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
public byte[] toBytes(java.lang.String encoding) throws java.io.UnsupportedEncodingExceptionDeprecated.- Throws:
java.io.UnsupportedEncodingException
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Deprecated.- Overrides:
equalsin classjava.lang.Object
-
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
public Codepoint clone()
Deprecated.
-
next
public Codepoint next()
Deprecated.Get the next codepoint
-
previous
public Codepoint previous()
Deprecated.Get the previous codepoint
-
-