ariba.util.core
Class ListUtil.Comparator<T extends List<?>>

java.lang.Object
  extended by ariba.util.core.ListUtil.Comparator<T>
All Implemented Interfaces:
Comparator<T>
Enclosing class:
ListUtil

public static final class ListUtil.Comparator<T extends List<?>>
extends Object
implements Comparator<T>

Is a java.util.Comparator for Lists based on a supplied elementComparator that delegates to ListUtil.compare(java.util.List, java.util.List, java.util.Comparator) when doing the comparison.


Constructor Summary
ListUtil.Comparator()
           
ListUtil.Comparator(Comparator<T> elementComparator)
           
 
Method Summary
 int compare(T first, T second)
          Compares first and second as lists according to the elementComparator.
 boolean equals(ListUtil.Comparator<T> that)
           
 boolean equals(Object that)
           
 Comparator<T> getElementComparator()
          Returns the element java.util.Comparator of this.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListUtil.Comparator

public ListUtil.Comparator(Comparator<T> elementComparator)

ListUtil.Comparator

public ListUtil.Comparator()
Method Detail

getElementComparator

public Comparator<T> getElementComparator()
Returns the element java.util.Comparator of this.


compare

public int compare(T first,
                   T second)
Compares first and second as lists according to the elementComparator.

Specified by:
compare in interface Comparator<T extends List<?>>

equals

public boolean equals(ListUtil.Comparator<T> that)

equals

public boolean equals(Object that)
Specified by:
equals in interface Comparator<T extends List<?>>
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


AribaWeb User Interface Development Framework
Copyright © 2000-2009 Ariba, Inc. All Rights Reserved.