com.jidesoft.filter
Class QuarterFilter<T>
java.lang.Object
com.jidesoft.filter.AbstractFilter<T>
com.jidesoft.filter.DateOrCalendarFilter<T>
com.jidesoft.filter.QuarterFilter<T>
- All Implemented Interfaces:
- Filter<T>, ObjectGrouperSupport, Serializable, Cloneable
public class QuarterFilter<T>
- extends DateOrCalendarFilter<T>
A Filter
returns false in DateOrCalendarFilter.isValueFiltered(Object)
only if the input value is within in the
quarter as specified. It will return false if the Calendar or the Date in that quarter, regardless the year.
- See Also:
- Serialized Form
Constructor Summary |
QuarterFilter()
Creates a QuarterFilter. |
QuarterFilter(int quarter)
Creates a QuarterFilter for a particular quarter. |
Methods inherited from class com.jidesoft.filter.AbstractFilter |
addFilterListener, clone, fireFilterChanged, fireFilterContentChanged, fireFilterDisabled, fireFilterEnabled, fireFilterNameChanged, getConditionString, getFilterFactory, getFilterFactoryName, getFilterListeners, getName, getObjectGrouper, getObjectGrouperName, getPreference, isEnabled, isFilterValid, removeFilterListener, setEnabled, setFilterFactory, setFilterFactoryName, setName, setObjectGrouper, setObjectGrouperName, setPreference |
QuarterFilter
public QuarterFilter()
- Creates a QuarterFilter. The quarter will be set later using setQuarter method.
QuarterFilter
public QuarterFilter(int quarter)
- Creates a QuarterFilter for a particular quarter.
- Parameters:
quarter
- the quarter, starting from 1 for the first quarter (including January, February, and March).
getQuarter
public int getQuarter()
setQuarter
public void setQuarter(int quarter)
stricterThan
public boolean stricterThan(Filter inputFilter)
- Check if this filter is stricter than the input filter while the two filters are with the same class.
- Specified by:
stricterThan
in interface Filter<T>
- Overrides:
stricterThan
in class DateOrCalendarFilter<T>
- Parameters:
inputFilter
- the input filter
- Returns:
- true if the quarter of the two filters are same. Otherwise false.
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object