ariba.util.core
Class ListUtil.Comparator<T extends java.util.List<?>>
java.lang.Object
ariba.util.core.ListUtil.Comparator<T>
- All Implemented Interfaces:
- java.util.Comparator<T>
- Enclosing class:
- ListUtil
public static final class ListUtil.Comparator<T extends java.util.List<?>>
- extends java.lang.Object
- implements java.util.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.
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
ListUtil.Comparator
public ListUtil.Comparator(java.util.Comparator<T> elementComparator)
ListUtil.Comparator
public ListUtil.Comparator()
getElementComparator
public java.util.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 java.util.Comparator<T extends java.util.List<?>>
equals
public boolean equals(ListUtil.Comparator<T> that)
equals
public boolean equals(java.lang.Object that)
- Specified by:
equals
in interface java.util.Comparator<T extends java.util.List<?>>
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.