public class Unicode extends Object implements Char
| Modifier and Type | Method and Description |
|---|---|
int |
asInteger()
Unicode codepoint representing this character.
|
String |
asString() |
int |
compareTo(Char o) |
boolean |
equals(Object o) |
int |
hashCode() |
int |
length()
Number of utf-16 characters that this character takes up if enclosed
in a java string.
|
static Unicode |
makeBorder(int u,
int r,
int d,
int l)
Make a uncode boder symbol matching the lines given.
|
static Unicode |
makeNumeric(int num)
Gets the unicode char representing a circled number.
|
int |
printableWidth()
The number of character spaces taken up by this symbol.
|
String |
toString() |
public int asInteger()
Charpublic String asString()
asString in interface Stringablepublic int printableWidth()
CharprintableWidth in interface Charpublic int length()
Charpublic static Unicode makeBorder(int u, int r, int d, int l)
u - The upward line.r - The rightward line.d - The downward line.l - The leftward line.public static Unicode makeNumeric(int num)
num - Number to get unicode char for.public int compareTo(Char o)
compareTo in interface Comparable<Char>Copyright © 2016. All rights reserved.