com.groiss.ds
Class PairComparator<K,V>

java.lang.Object
  extended by com.groiss.ds.PairComparator<K,V>
All Implemented Interfaces:
Serializable, Comparator<KeyValuePair<K,V>>

public class PairComparator<K,V>
extends Object
implements Comparator<KeyValuePair<K,V>>, Serializable

Use this comparator to sort Persistent objects or other KeyValuePairs. The compare method compares the values using string compare ignoring case

See Also:
Serialized Form

Constructor Summary
PairComparator()
           
 
Method Summary
 int compare(KeyValuePair<K,V> p1, KeyValuePair<K,V> p2)
           
 
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

PairComparator

public PairComparator()
Method Detail

compare

public int compare(KeyValuePair<K,V> p1,
                   KeyValuePair<K,V> p2)
Specified by:
compare in interface Comparator<KeyValuePair<K,V>>


@enterprise 8.0.10809 Copyright © 2001-2012 Groiss Informatics GmbH. All Rights Reserved.