com.ibm.tws.objects.types
Class PeriodInterval

java.lang.Object
  extended bycom.ibm.tws.objects.types.PeriodInterval
All Implemented Interfaces:
java.io.Serializable

public class PeriodInterval
extends java.lang.Object
implements java.io.Serializable

This class includes the information required to describe period days intervals.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          Copyright.
 
Constructor Summary
PeriodInterval()
          Creates an empty PeriodInterval object.
PeriodInterval(java.util.Date origin, java.util.Date end)
          Creates a PeriodInterval object with the specified origin and end dates.
 
Method Summary
 boolean equals(java.lang.Object object)
          Returns true if all fields of this PeriodInterval object are equal to those of the given one.
 java.util.Date getEndDate()
          Returns the interval end date.
 java.util.Date getOriginDate()
          Returns the interval origin date.
 int hashCode()
          Returns a hash code for this PeriodInterval object.
 void setEndDate(java.util.Date end)
          Sets the interval end date.
 void setOriginDate(java.util.Date origin)
          Sets the interval origin date.
 java.lang.String toString()
          Returns a string representation of this PeriodInterval object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright.

Constructor Detail

PeriodInterval

public PeriodInterval()
Creates an empty PeriodInterval object.


PeriodInterval

public PeriodInterval(java.util.Date origin,
                      java.util.Date end)
Creates a PeriodInterval object with the specified origin and end dates.

Parameters:
origin - The interval origin date.
end - The interval end date.
Method Detail

getOriginDate

public java.util.Date getOriginDate()
Returns the interval origin date.

Returns:
The interval origin date.

getEndDate

public java.util.Date getEndDate()
Returns the interval end date.

Returns:
The interval end date.

setOriginDate

public void setOriginDate(java.util.Date origin)
Sets the interval origin date.

Parameters:
origin - The interval origin date.

setEndDate

public void setEndDate(java.util.Date end)
Sets the interval end date.

Parameters:
end - The interval end date.

equals

public boolean equals(java.lang.Object object)
Returns true if all fields of this PeriodInterval object are equal to those of the given one.

Parameters:
object - The object to be compared with this one.
Returns:
True if this object equals to the given one.

hashCode

public int hashCode()
Returns a hash code for this PeriodInterval object.

Returns:
The object's hash code.

toString

public java.lang.String toString()
Returns a string representation of this PeriodInterval object.

Returns:
A text string including all PeriodInterval fields.


Copyright © 2005 IBM All Rights Reserved.