Tells whether or not this object is equal to another. Two charsets are equal if, and only if, they have the same canonical names. A charset is never equal to any other type of object. @return true if, and only if, this charset is equal to the given object
(Object ob)
| 899 | * given object |
| 900 | */ |
| 901 | public final boolean equals(Object ob) { |
| 902 | if (!(ob instanceof Charset)) |
| 903 | return false; |
| 904 | if (this == ob) |
| 905 | return true; |
| 906 | return name.equals(((Charset)ob).name()); |
| 907 | } |
| 908 | |
| 909 | /** |
| 910 | * Returns a string describing this charset. |