|
Java Platform 1.2 Beta 4 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Comparator | |
java.lang | Provides classes that are fundamental to the design of the Java programming language. |
java.text | Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages. |
java.util | Provides useful utilities for data structures, date, time, internationalization, events (root interfaces), a simple string tokenizer, a random-number generator, observers, properties and exceptions. |
Uses of Comparator in java.lang |
Fields in java.lang declared as Comparator | |
static Comparator | String.CASE_INSENSITIVE_ORDER
Returns a case insensitive string Comparator that orders Strings as by compareToIgnoreCase .
|
Uses of Comparator in java.text |
Classes in java.text that implement Comparator | |
Collator
The Collator class performs locale-sensitive
String comparison. |
|
RuleBasedCollator
The RuleBasedCollator class is a concrete subclass of
Collator that provides a simple, data-driven, table
collator. |
Uses of Comparator in java.util |
Methods in java.util that return Comparator | |
static Comparator | Collections.reverseOrder()
Returns a Comparator that imposes the reverse of the natural ordering on a collection of Comparable objects. |
Comparator | TreeSet.comparator()
Returns the comparator used to order this TreeMap, or null if this TreeMap uses its keys natural ordering. |
Comparator | SortedSet.comparator()
Returns the Comparator associated with this SortedSet, or null if it uses its elements' natural ordering. |
Comparator | TreeMap.comparator()
Returns the comparator used to order this TreeMap, or null if this TreeMap uses its keys' natural order. |
Comparator | SortedMap.comparator()
Returns the Comparator associated with this SortedMap, or null if it uses its keys' natural ordering. |
Methods in java.util with parameters of type Comparator | |
static void | Collections.sort(List list,
Comparator c)
Sorts the specified List according to the order induced by the specified Comparator. |
static int | Collections.binarySearch(List list,
Object key,
Comparator c)
Searches the specified List for the specified Object using the binary search algorithm. |
static Object | Collections.min(Collection coll,
Comparator comp)
Returns the minimum element of the given Collection, according to the order induced by the specified Comparator. |
static Object | Collections.max(Collection coll,
Comparator comp)
Returns the maximum element of the given Collection, according to the order induced by the specified Comparator. |
static void | Arrays.sort(Object[] a,
Comparator c)
Sorts the specified array of objects according to the order induced by the specified Comparator. |
static int | Arrays.binarySearch(Object[] a,
Object key,
Comparator c)
Searches the specified array for the specified Object using the binary search algorithm. |
Constructors in java.util with parameters of type Comparator | |
TreeSet.TreeSet(Comparator c)
Constructs a new, empty TreeSet, sorted according to the given comparator. |
|
TreeMap.TreeMap(Comparator c)
Constructs a new, empty TreeMap, sorted according to the given comparator. |
|
Java Platform 1.2 Beta 4 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |