jxUtil 0.6

org.sourceforge.jxutil.net
Class URLEquiv

java.lang.Object
  |
  +--org.sourceforge.jxutil.net.URLEquiv
All Implemented Interfaces:
Comparator

public final class URLEquiv
extends Object
implements Comparator

Author:
Keve Muller

Field Summary
private  ArrayList equivGroups
           
private static URLEquiv sysInstance
           
 
Constructor Summary
URLEquiv()
           
 
Method Summary
 void add(String url1, URL url2)
          Convenience function which does not throw MalformedURL.
 void add(URL[] urls)
           
 void add(URL url1, URL url2)
           
 int compare(Object o1, Object o2)
           
(package private)  TreeSet findGroup(URL url)
           
 URL get(URL url)
           
static URLEquiv getSystemInstance()
           
 
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
 

Field Detail

equivGroups

private ArrayList equivGroups

sysInstance

private static final URLEquiv sysInstance
Constructor Detail

URLEquiv

public URLEquiv()
Method Detail

add

public void add(String url1,
                URL url2)
Convenience function which does not throw MalformedURL. Best used in static initializers.


add

public void add(URL[] urls)

add

public void add(URL url1,
                URL url2)

compare

public int compare(Object o1,
                   Object o2)
Specified by:
compare in interface Comparator

findGroup

TreeSet findGroup(URL url)
Throws:
NullPointerException - if the url is null

get

public URL get(URL url)

getSystemInstance

public static URLEquiv getSystemInstance()

jxUtil 0.6

Copyright © 2001,2002 Keve Müller, et al.; see LICENSE file for details.