60 |
* @author Jesse Rosenstock |
* @author Jesse Rosenstock |
61 |
* @since 1.4 |
* @since 1.4 |
62 |
*/ |
*/ |
63 |
public abstract class Charset implements Comparable |
public abstract class Charset implements Comparable<Charset> |
64 |
{ |
{ |
65 |
private CharsetEncoder cachedEncoder; |
private CharsetEncoder cachedEncoder; |
66 |
private CharsetDecoder cachedDecoder; |
private CharsetDecoder cachedDecoder; |
332 |
} |
} |
333 |
} |
} |
334 |
|
|
335 |
public final int compareTo (Object ob) |
public final int compareTo (Charset other) |
336 |
{ |
{ |
337 |
return canonicalName.compareToIgnoreCase (((Charset) ob).canonicalName); |
return canonicalName.compareToIgnoreCase (other.canonicalName); |
338 |
} |
} |
339 |
|
|
340 |
public final int hashCode () |
public final int hashCode () |