Package com.tangosol.util
Class SortedBag.WrapperComparator
- java.lang.Object
 - 
- com.tangosol.util.SortedBag.WrapperComparator
 
 
- 
- All Implemented Interfaces:
 Comparator
protected class SortedBag.WrapperComparator extends Object implements Comparator
WrapperComparator is a Comparator implementation that is aware ofSortedBag.UniqueElementwrappers and will delegate the comparison of the elements in both forms to the wrapped comparator. 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected Comparatorf_comparatorThe underlying "logical" comparator. 
- 
Constructor Summary
Constructors Constructor Description WrapperComparator(Comparator comparator)Construct a WrapperComparator around the specified comparator. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(Object o1, Object o2)- 
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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong 
 - 
 
 - 
 
- 
- 
Field Detail
- 
f_comparator
protected final Comparator f_comparator
The underlying "logical" comparator. 
 - 
 
- 
Constructor Detail
- 
WrapperComparator
public WrapperComparator(Comparator comparator)
Construct a WrapperComparator around the specified comparator.- Parameters:
 comparator- the underlying comparator
 
 - 
 
- 
Method Detail
- 
compare
public int compare(Object o1, Object o2)
- Specified by:
 comparein interfaceComparator
 
 - 
 
 -