JAPI 0_6-alpha-2
Yet another Java API
API Documentation

net.sf.japi.swing
Class LocaleComparator

java.lang.Object
  extended by net.sf.japi.swing.LocaleComparator
All Implemented Interfaces:
Comparator<Locale>

public final class LocaleComparator
extends Object
implements Comparator<Locale>

Implementation of Comparator that is able to compare Locale instances by their names (allowing null). The Locale for sorting the Locales is determined at creation time.

Author:
Christian Hujer

Constructor Summary
LocaleComparator()
          Create a LocaleComparator.
 
Method Summary
 int compare(Locale o1, Locale o2)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

LocaleComparator

public LocaleComparator()
Create a LocaleComparator.

Method Detail

compare

public int compare(Locale o1,
                   Locale o2)

Specified by:
compare in interface Comparator<Locale>

JAPI
Yet another Java API
API Documentation

© 2005-2006 Christian Hujer. All rights reserved. See copyright