Package com.tangosol.util.filter
Class ArrayFilter.WeightedFilter
java.lang.Object
com.tangosol.util.filter.ArrayFilter.WeightedFilter
- All Implemented Interfaces:
 Comparable<ArrayFilter.WeightedFilter>
- Enclosing class:
 ArrayFilter
protected static class ArrayFilter.WeightedFilter
extends Object
implements Comparable<ArrayFilter.WeightedFilter>
A thin wrapper around a Filter allowing for sorting the filters
 according to their effectiveness.
- 
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWeightedFilter(Filter filter, int nEffect) Construct the WeightedFilter. - 
Method Summary
Modifier and TypeMethodDescriptionintCompares this WeightedFilter with the specified WeightedFilter for order.Get the wrapped filter. 
- 
Constructor Details
- 
WeightedFilter
Construct the WeightedFilter.- Parameters:
 filter- the wrapped filternEffect- the filter's effectiveness
 
 - 
 - 
Method Details
- 
compareTo
Compares this WeightedFilter with the specified WeightedFilter for order. Returns a negative integer, zero, or a positive integer as this WeightedFilter's effectiveness is less than, equal to, or greater than the effectiveness of the specified WeightedFilter object.- Specified by:
 compareToin interfaceComparable<ArrayFilter.WeightedFilter>- Parameters:
 that- the Object to be compared- Returns:
 - a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object
 - Throws:
 ClassCastException- if the specified object's type prevents it from being compared to this WeightedFilter
 - 
getFilter
Get the wrapped filter.- Returns:
 - the wrapped filter
 
 
 -