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

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

public class PairComparator<K,V>
extends java.lang.Object
implements java.util.Comparator<KeyValuePair<K,V>>, java.io.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 java.util.Comparator<KeyValuePair<K,V>>


@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.