public class Char
extends java.lang.Object
implements java.lang.Comparable, java.io.Externalizable
Modifier and Type | Field and Description |
---|---|
static int |
IGNORABLE_CHAR |
Constructor and Description |
---|
Char()
Should only be used for serialization.
|
Modifier and Type | Method and Description |
---|---|
static void |
addNamedChars(java.util.Map<java.lang.String,java.lang.String> map) |
static void |
append(int i,
java.lang.Appendable out) |
static char |
castToChar(java.lang.Object obj) |
static int |
castToCharacter(java.lang.Object obj) |
static int |
castToCharacterOrEof(java.lang.Object obj) |
char |
charValue() |
static int |
checkCharOrEof(java.lang.Object obj)
Return character value of argument; otherwise return -2.
|
int |
compareTo(java.lang.Object o) |
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
int |
intValue() |
static boolean |
isChar(java.lang.Object obj) |
static boolean |
isCharOrEof(java.lang.Object obj) |
static Char |
make(int ch) |
static java.lang.Object |
makeOrEof(int ch) |
static int |
nameToChar(java.lang.String name) |
void |
print(Consumer out) |
static void |
print(int i,
java.lang.Appendable out) |
void |
readExternal(java.io.ObjectInput in) |
java.lang.Object |
readResolve() |
static java.lang.String |
toScmReadableString(int ch) |
java.lang.String |
toString() |
static java.lang.String |
toString(int value) |
static Char |
valueOf(int ch) |
void |
writeExternal(java.io.ObjectOutput out) |
public static final int IGNORABLE_CHAR
public void print(Consumer out)
public static char castToChar(java.lang.Object obj)
public static int castToCharacter(java.lang.Object obj)
public static int castToCharacterOrEof(java.lang.Object obj)
public static boolean isChar(java.lang.Object obj)
public static boolean isCharOrEof(java.lang.Object obj)
public static int checkCharOrEof(java.lang.Object obj)
castToCharacterOrEof
.public static void print(int i, java.lang.Appendable out)
public static void append(int i, java.lang.Appendable out) throws java.io.IOException
java.io.IOException
public final char charValue()
public final int intValue()
public int hashCode()
hashCode
in class java.lang.Object
public static Char valueOf(int ch)
public static Char make(int ch)
public static java.lang.Object makeOrEof(int ch)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public static void addNamedChars(java.util.Map<java.lang.String,java.lang.String> map)
public static int nameToChar(java.lang.String name)
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String toString(int value)
public static java.lang.String toScmReadableString(int ch)
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public java.lang.Object readResolve() throws java.io.ObjectStreamException
java.io.ObjectStreamException
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable