-
public interface IFilterable<F extends Serializable>When user wants to search through the list, an item, in order to be to collected, must implement this interface. The filter object can be of any type and must implement Serializable type to support configuration changes, for example: String.
-
-
Method Summary
-
-
Method Detail
-
filter
abstract boolean filter(F constraint)
Checks and performs the filter on this item. Filter object can be of any type: you canapply any filter your use case foresees.
Note: Filter method makes use of
{@code HashSet}, in case you implemented equals you should implement hashCode too!- Parameters:
constraint- the filter applied by the user.
-
-
-
-