com.myjavaworld.util
Class DateFilter
java.lang.Object
com.myjavaworld.util.DateFilter
- All Implemented Interfaces:
- Filter
public class DateFilter
- extends Object
- implements Filter
- Version:
- 1.0
- Author:
- Sai Pullabhotla, psai [at] jMethods [dot] com
Constructor Summary |
DateFilter(Date startDate,
Date endDate)
Creates an instance of DateFilter . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateFilter
public DateFilter(Date startDate,
Date endDate)
- Creates an instance of
DateFilter
.
- Parameters:
startDate
- endDate
-
getEndDate
public Date getEndDate()
- Returns:
- Returns the endDate.
setEndDate
public void setEndDate(Date endDate)
- Parameters:
endDate
- The endDate to set.
getStartDate
public Date getStartDate()
- Returns:
- Returns the startDate.
setStartDate
public void setStartDate(Date startDate)
- Parameters:
startDate
- The startDate to set.
accept
public boolean accept(Object obj)
- Description copied from interface:
Filter
- Whether or not the given object will pass through this filter.
- Specified by:
accept
in interface Filter
- Parameters:
obj
- The object to test.
- Returns:
true
, if the object will pass through this filter.
false
otherwise.
Copyright © 2000-2012 jMethods, Inc.. All Rights Reserved.