public class NamedCharacter extends Object
| Constructor and Description |
|---|
NamedCharacter(String charName)
Simple constructor.
|
NamedCharacter(String charName,
String unicodeSequence)
Main constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getName()
Returns the character name (as defined by the Adobe glyph list).
|
char |
getSingleUnicodeValue()
Returns the single Unicode value associated with this named character.
|
String |
getUnicodeSequence()
Returns the Unicode sequence associated with this character.
|
int |
hashCode() |
boolean |
hasSingleUnicodeValue()
Indicates whether a single Unicode value is associated with this character.
|
String |
toString() |
public NamedCharacter(String charName, String unicodeSequence)
charName - the character nameunicodeSequence - the Unicode sequence associated with this characterpublic NamedCharacter(String charName)
charName - the character namepublic String getName()
public String getUnicodeSequence()
public boolean hasSingleUnicodeValue()
public char getSingleUnicodeValue()
throws IllegalStateException
hasSingleUnicodeValue() before you call this method because an
IllegalStateException is thrown is a Unicode sequence with more than one character is
associated with this character.IllegalStateException - if a Unicode sequence with more than one value is associated
with the named characterCopyright © 2025 Apache Software Foundation. All rights reserved.