All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class benno.net.DomainNameOrdering

java.lang.Object
   |
   +----benno.net.DomainNameOrdering

public class DomainNameOrdering
extends Object
implements Ordering
Provides an ordering of Strings that groups by domain name. Two Strings passed to the compare method will be treated as host names. They will be compared by each component of the domain name, starting at the left hand side and working rightwards. Each component will be compared with the default Collator returned by Collator.getInstance().

Version:
$Revision: 1.4 $
Author:
Ben Clifford

Constructor Index

 o DomainNameOrdering()

Method Index

 o compare(Object, Object)

Constructors

 o DomainNameOrdering
 public DomainNameOrdering()

Methods

 o compare
 public int compare(Object ao,
                    Object bo)

All Packages  Class Hierarchy  This Package  Previous  Next  Index