Class 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 char
      Codepoint​(char high, char low)
      Deprecated.
      Create a codepoint from a surrogate pair
      Codepoint​(int value)
      Deprecated.
      Create a codepoint from a specific integer value
      Codepoint​(java.lang.CharSequence value)
      Deprecated.
      Create a Codepoint from a CharSequence.
      Codepoint​(Codepoint codepoint)
      Deprecated.
      Create a codepoint as a copy of another codepoint
    • 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.UnsupportedEncodingException
        Deprecated.
        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:
        compareTo in interface java.lang.Comparable<Codepoint>
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.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.UnsupportedEncodingException
        Deprecated.
        Throws:
        java.io.UnsupportedEncodingException
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Deprecated.
        Overrides:
        equals in class java.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