Package knf.hydra.core.models.data
Class FilterData
-
- All Implemented Interfaces:
public final class FilterDataRepresents a filter section, each one contains a list of options, the behavior is controlled by the filterType which change the options between a list of checkboxes and radio buttons, when the filters are applied by the user the app will detect the differences between the filters and will return only the changed sections.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumFilterData.Type
-
Field Summary
Fields Modifier and Type Field Description private final Stringkeyprivate final Stringnameprivate final FilterData.TypefilterTypeprivate final List<FilterItem>items
-
Constructor Summary
Constructors Constructor Description FilterData(String key, String name, FilterData.Type filterType, List<FilterItem> items)
-
Method Summary
Modifier and Type Method Description final StringgetKey()The key that identifies the filter final StringgetName()The name of the filter final FilterData.TypegetFilterType()The selection type of the filter final List<FilterItem>getItems()The list of options for the filter -
-
Constructor Detail
-
FilterData
FilterData(String key, String name, FilterData.Type filterType, List<FilterItem> items)
-
-
Method Detail
-
getFilterType
final FilterData.Type getFilterType()
The selection type of the filter
-
getItems
final List<FilterItem> getItems()
The list of options for the filter
-
-
-
-