com.myjavaworld.util
Class DateFilter

java.lang.Object
  extended by 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.
 
Method Summary
 boolean accept(Object obj)
          Whether or not the given object will pass through this filter.
 Date getEndDate()
           
 Date getStartDate()
           
 void setEndDate(Date endDate)
           
 void setStartDate(Date startDate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateFilter

public DateFilter(Date startDate,
                  Date endDate)
Creates an instance of DateFilter.

Parameters:
startDate -
endDate -
Method Detail

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.