com.quadrique.jbuildingblocks.core.time
Class JbbDateInterval

java.lang.Object
  extended by com.quadrique.jbuildingblocks.core.dataStructure.JbbDateFromTo
      extended by com.quadrique.jbuildingblocks.core.time.JbbDateInterval
All Implemented Interfaces:
Serializable

public class JbbDateInterval
extends JbbDateFromTo
implements Serializable

A simple JAVA bean to manipulate a From To date interval with an associated type and number (e.g. type WEEK for a week interval, type MONTH for a month interval....)

See Also:
Serialized Form

Field Summary
static int MONTH
           
static int QUARTER
           
static int WEEK
          constants
static int YEAR
           
 
Constructor Summary
JbbDateInterval()
           
JbbDateInterval(Date from, Date to, int type)
           
JbbDateInterval(Date from, Date to, int type, int number)
           
 
Method Summary
static int getMONTH()
           
 int getNumber()
           
static int getQUARTER()
           
static long getSerialVersionUID()
           
 int getType()
           
static int getWEEK()
           
static int getYEAR()
           
 void setNumber(int number)
           
 void setType(int type)
           
 String toString()
           
 
Methods inherited from class com.quadrique.jbuildingblocks.core.dataStructure.JbbDateFromTo
getFrom, getTo, setFrom, setTo
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

WEEK

public static final int WEEK
constants

See Also:
Constant Field Values

MONTH

public static final int MONTH
See Also:
Constant Field Values

QUARTER

public static final int QUARTER
See Also:
Constant Field Values

YEAR

public static final int YEAR
See Also:
Constant Field Values
Constructor Detail

JbbDateInterval

public JbbDateInterval()

JbbDateInterval

public JbbDateInterval(Date from,
                       Date to,
                       int type)
Parameters:
from -
to -
type -

JbbDateInterval

public JbbDateInterval(Date from,
                       Date to,
                       int type,
                       int number)
Parameters:
from -
to -
type -
Method Detail

toString

public String toString()
Overrides:
toString in class JbbDateFromTo

getSerialVersionUID

public static long getSerialVersionUID()

getType

public int getType()

setType

public void setType(int type)

getMONTH

public static int getMONTH()

getQUARTER

public static int getQUARTER()

getWEEK

public static int getWEEK()

getYEAR

public static int getYEAR()

getNumber

public int getNumber()

setNumber

public void setNumber(int number)


Copyright © 2001-2008 Quadrique Corporation. All Rights Reserved.