Classes Implementing Comparable : Comparable Interface « Collections « Java Tutorial






Class          Natural Ordering
Byte            Signed numerical
Character       UnSigned numerical
Long            Signed numerical
Integer         Signed numerical
Short           Signed numerical
Double           Signed numerical
Float           Signed numerical
BigInteger      Signed numerical
BigDecimal       Signed numerical
Boolean         Boolean.FALSE < Boolean.TRUE
File            System-dependent lexicographic on path name
String           Lexicographic
Date           Chronological
CollationKey   Locale-specific lexicographic








9.39.Comparable Interface
9.39.1.Classes Implementing Comparable
9.39.2.Creating a Comparable object
9.39.3.Generic Comparable
9.39.4.Sort on many(more than one) fields