1 |
/* java.lang.Character -- Wrapper class for char, and Unicode subsets |
/* java.lang.Character -- Wrapper class for char, and Unicode subsets |
2 |
Copyright (C) 1998, 1999, 2001, 2002, 2004 Free Software Foundation, Inc. |
Copyright (C) 1998, 1999, 2001, 2002, 2004, 2005 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
58 |
* <p>See <a href="http://www.unicode.org">http://www.unicode.org</a> |
* <p>See <a href="http://www.unicode.org">http://www.unicode.org</a> |
59 |
* for more information on the Unicode Standard. |
* for more information on the Unicode Standard. |
60 |
* |
* |
61 |
* @author Tom Tromey <tromey@cygnus.com> |
* @author Tom Tromey (tromey@cygnus.com) |
62 |
* @author Paul N. Fisher |
* @author Paul N. Fisher |
63 |
* @author Jochen Hoenicke |
* @author Jochen Hoenicke |
64 |
* @author Eric Blake <ebb9@email.byu.edu> |
* @author Eric Blake (ebb9@email.byu.edu) |
65 |
|
* @author Andrew John Hughes (gnu_andrew@member.fsf.org) |
66 |
* @see CharData |
* @see CharData |
67 |
* @since 1.0 |
* @since 1.0 |
68 |
* @status partly updated to 1.5; some things still missing |
* @status partly updated to 1.5; some things still missing |
2247 |
} |
} |
2248 |
|
|
2249 |
/** |
/** |
|
* Compares an object to this Character. Assuming the object is a |
|
|
* Character object, this method performs the same comparison as |
|
|
* compareTo(Character). |
|
|
* |
|
|
* @param o object to compare |
|
|
* @return the comparison value |
|
|
* @throws ClassCastException if o is not a Character object |
|
|
* @throws NullPointerException if o is null |
|
|
* @see #compareTo(Character) |
|
|
* @since 1.2 |
|
|
*/ |
|
|
public int compareTo(Object o) |
|
|
{ |
|
|
return compareTo((Character) o); |
|
|
} |
|
|
|
|
|
/** |
|
2250 |
* Returns an <code>Character</code> object wrapping the value. |
* Returns an <code>Character</code> object wrapping the value. |
2251 |
* In contrast to the <code>Character</code> constructor, this method |
* In contrast to the <code>Character</code> constructor, this method |
2252 |
* will cache some values. It is used by boxing conversion. |
* will cache some values. It is used by boxing conversion. |