|Constructor and Description|
Constructs a filter that filters out the first
|Modifier and Type||Method and Description|
Determines whether the current entry is OK to pass the filter or not, based on the current state.
Creates and initializes a new filter state, when an iterator is constructed.
public FrontTrimFilter(int n)
n- the number of items to filtered out from the beginning
public StatefulCacheFilter.FilterState newFilterState()
public boolean isOK(StatefulCacheFilter.FilterState filterState, TimedEntry<T> entry)
filterStateto its own implementation of StatefulCacheFilter.FilterState in order to read the state.
filterState- the current state of the filter
entry- the current entry
trueif the entry is OK to pass the filter
Copyright © 2010–2016 Numerical Method Inc.. All rights reserved.