[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Primitive type classes implement Comparable
From: |
Mark Wielaard |
Subject: |
Primitive type classes implement Comparable |
Date: |
Sun, 7 Jan 2001 23:43:11 +0100 |
User-agent: |
Mutt/1.2.5i |
Hi,
All primitive type classes should implement the Comparable interface.
The following patch adds this for the classes that did not yet implement
it. It also adds compareTo and friends to String.
2001-01-07 Mark Wielaard <address@hidden>
* java/lang/Float.java: implements Comparable, new method compareTo()
* java/lang/Integer.java: Ditto
* java/lang/Long.java: Ditto
* java/lang/Short.java: Ditto
* java/lang/String.java: Ditto
(CASE_INSENSITIVE_ORDER): new field
(compareToIgnoreCase): new method
I am checking this in.
Cheers,
Mark
comparable.patch
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Primitive type classes implement Comparable,
Mark Wielaard <=