ariba.util.core
Class ListUtil.Comparator<T extends List<?>>
java.lang.Object
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.
ListUtil.Comparator
public ListUtil.Comparator(Comparator<T> elementComparator)
ListUtil.Comparator
public ListUtil.Comparator()
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.