com.sun.syndication.feed.module.base.types
Class DateTimeRange

java.lang.Object
  extended by com.sun.syndication.feed.module.base.types.DateTimeRange
All Implemented Interfaces:
CloneableType, java.lang.Cloneable

public class DateTimeRange
extends java.lang.Object
implements CloneableType

Represents a time range.

Version:
$Revision: 1.2 $
Author:
Robert "kebernet" Cooper

Constructor Summary
DateTimeRange(java.util.Date start, java.util.Date end)
          Creates a new instance of DateTimeRange
 
Method Summary
 java.lang.Object clone()
          Clones the object
 boolean equals(java.lang.Object o)
           
 java.util.Date getEnd()
          The end of the timeframe.
 java.util.Date getStart()
          The beginning of the timeframe.
 java.lang.String toString()
          String representation of the object.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateTimeRange

public DateTimeRange(java.util.Date start,
                     java.util.Date end)
Creates a new instance of DateTimeRange

Parameters:
start - Beginning of the timeframe.
end - End of the Timeframe.
Method Detail

getEnd

public java.util.Date getEnd()
The end of the timeframe.

Returns:
The end of the timeframe.

getStart

public java.util.Date getStart()
The beginning of the timeframe.

Returns:
The beginning of the timeframe.

clone

public java.lang.Object clone()
Clones the object

Specified by:
clone in interface CloneableType
Overrides:
clone in class java.lang.Object
Returns:
Duplicate of this object.

toString

public java.lang.String toString()
String representation of the object.

Overrides:
toString in class java.lang.Object
Returns:
String representation of the object.

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object


Copyright © 2006-2009. All Rights Reserved.