org.nuiton.util
Class PeriodDates

java.lang.Object
  extended by org.nuiton.util.PeriodDates

public class PeriodDates
extends Object

PeriodDates.java Created on 2009-08-13

Version:
$Revision: 98 $ Last update: $Date: 2009-12-04 01:28:16 +0100 (Fri, 04 Dec 2009) $ by : $Author: fdesbois $
Author:
fdesbois

Constructor Summary
PeriodDates()
           
PeriodDates(Calendar fromCalendar, Calendar thruCalendar)
           
PeriodDates(Date fromDate, Date thruDate)
           
 
Method Summary
 boolean afterBegin(Calendar calendar)
           
 boolean afterEnd(Calendar calendar)
           
 boolean beforeEnd(Calendar calendar)
           
 boolean between(Calendar calendar)
           
static PeriodDates createMonthsPeriodFromToday(int monthAfter)
           
 List<String> getFormatedMonths()
           
 Date getFromDate()
           
 int getFromMonth()
           
 List<Date> getMonths()
           
 String getPattern()
           
 Date getThruDate()
           
 void setFromDate(Date fromDate)
           
 void setPattern(String pattern)
           
 void setThruDate(Date thruDate)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PeriodDates

public PeriodDates()

PeriodDates

public PeriodDates(Date fromDate,
                   Date thruDate)

PeriodDates

public PeriodDates(Calendar fromCalendar,
                   Calendar thruCalendar)
Method Detail

createMonthsPeriodFromToday

public static PeriodDates createMonthsPeriodFromToday(int monthAfter)

getPattern

public String getPattern()

setPattern

public void setPattern(String pattern)

setFromDate

public void setFromDate(Date fromDate)

getFromDate

public Date getFromDate()

getFromMonth

public int getFromMonth()

setThruDate

public void setThruDate(Date thruDate)

getThruDate

public Date getThruDate()

getMonths

public List<Date> getMonths()

getFormatedMonths

public List<String> getFormatedMonths()

beforeEnd

public boolean beforeEnd(Calendar calendar)

afterEnd

public boolean afterEnd(Calendar calendar)

afterBegin

public boolean afterBegin(Calendar calendar)

between

public boolean between(Calendar calendar)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2009 CodeLutin. All Rights Reserved.