org.melati.util
Class AcceptCharset.Comparator<T>

Package class diagram package AcceptCharset.Comparator
java.lang.Object
  extended by org.melati.util.AcceptCharset.Comparator<T>
All Implemented Interfaces:
Comparator<T>
Enclosing class:
AcceptCharset

protected static class AcceptCharset.Comparator<T>
extends Object
implements Comparator<T>

Comparator for comparing AcceptCharset.CharsetAndQValue objects.


Constructor Summary
protected AcceptCharset.Comparator()
           
 
Method Summary
 int compare(Object one, Object two)
          
protected  int compareCharsetAndQValue(AcceptCharset.CharsetAndQValue one, AcceptCharset.CharsetAndQValue two)
          This default compares according to client requirements.
 
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

AcceptCharset.Comparator

protected AcceptCharset.Comparator()
Method Detail

compare

public final int compare(Object one,
                         Object two)

Specified by:
compare in interface Comparator<T>
See Also:
java.util.Comparator#compare(T, T)

compareCharsetAndQValue

protected int compareCharsetAndQValue(AcceptCharset.CharsetAndQValue one,
                                      AcceptCharset.CharsetAndQValue two)
This default compares according to client requirements.



Copyright © 2000-2010 PanEris. All Rights Reserved.