|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.tangosol.util.filter.ArrayFilter.WeightedFilter
protected static class ArrayFilter.WeightedFilter
A thin wrapper around a Filter allowing for sorting the filters according to their effectiveness.
| Constructor Summary | |
|---|---|
protected |
ArrayFilter.WeightedFilter(Filter filter,
int nEffect)
Construct the WeightedFilter. |
| Method Summary | |
|---|---|
int |
compareTo(Object o)
Compares this WeightedFilter with the specified WeightedFilter for order. |
int |
getEffectiveness()
Get the effectiveness value of the wrapped filter. |
Filter |
getFilter()
Get the wrapped filter. |
| Constructor Detail |
|---|
protected ArrayFilter.WeightedFilter(Filter filter,
int nEffect)
filter - the wrapped filternEffect - the filter's effectiveness| Method Detail |
|---|
public int compareTo(Object o)
compareTo in interface Comparableo - the Object to be compared
ClassCastException - if the specified object's type prevents
it from being compared to this WeightedFilterpublic Filter getFilter()
public int getEffectiveness()
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||