|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.aliasi.util.FilterComparator<E>
E - the type of objects being compared
@Deprecated public class FilterComparator<E>
Provides a generic filter for comparators, holding a reference to a contained comparator and allowing it to be retrieved, and a comparison operation that delegates to the contained comparator.
| Field Summary | |
|---|---|
protected Comparator<? super E> |
mComparator
Deprecated. The comparator being filtered. |
| Constructor Summary | |
|---|---|
FilterComparator(Comparator<? super E> comparator)
Deprecated. Construct a filter comparator containing the specified comparator and delegating comparison to it. |
|
| Method Summary | |
|---|---|
int |
compare(E x1,
E x2)
Deprecated. Return the result of comparing the specified objects using the contained comparator. |
Comparator<? super E> |
getFilteredComparator()
Deprecated. Returns the comparator being filtered, as provided to the constructor. |
| 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 |
| Field Detail |
|---|
protected final Comparator<? super E> mComparator
| Constructor Detail |
|---|
public FilterComparator(Comparator<? super E> comparator)
comparator - The comparator being filtered.| Method Detail |
|---|
public Comparator<? super E> getFilteredComparator()
public int compare(E x1,
E x2)
compare in interface Comparator<E>x1 - First object to compare.x2 - Second object to compare.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||