fr.ifremer.allegro.type
Class DatePeriod

java.lang.Object
  extended by fr.ifremer.allegro.type.DatePeriod
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DatePeriodImpl

public abstract class DatePeriod
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
protected DatePeriod()
           
 
Method Summary
 boolean equals(java.lang.Object object)
          Indicates if the argument is of the same type and all values are equal.
 java.util.Date getEndDate()
           
 java.util.Date getStartDate()
           
 int hashCode()
           
protected  void initialize()
          Hook for initializing the object in the subclass
static DatePeriod newInstance(java.util.Date startDate, java.util.Date endDate)
          Creates a new instance of DatePeriod taking all properties.
static DatePeriod newInstance(DatePeriod otherObject)
          Creates a new instance from other DatePeriod instance.
 void setEndDate(java.util.Date endDate)
           
 void setStartDate(java.util.Date startDate)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatePeriod

protected DatePeriod()
Method Detail

newInstance

public static DatePeriod newInstance(java.util.Date startDate,
                                     java.util.Date endDate)
Creates a new instance of DatePeriod taking all properties.


newInstance

public static DatePeriod newInstance(DatePeriod otherObject)
Creates a new instance from other DatePeriod instance.


initialize

protected void initialize()
Hook for initializing the object in the subclass


getStartDate

public java.util.Date getStartDate()

setStartDate

public void setStartDate(java.util.Date startDate)

getEndDate

public java.util.Date getEndDate()

setEndDate

public void setEndDate(java.util.Date endDate)

equals

public boolean equals(java.lang.Object object)
Indicates if the argument is of the same type and all values are equal.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2008-2010 IFREMER. All Rights Reserved.