org.rometools.feed.module.base.types
Class DateTimeRange

java.lang.Object
  extended by org.rometools.feed.module.base.types.DateTimeRange
All Implemented Interfaces:
Cloneable, CloneableType

public class DateTimeRange
extends Object
implements CloneableType

Represents a time range.

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

Constructor Summary
DateTimeRange(Date start, Date end)
          Creates a new instance of DateTimeRange
 
Method Summary
 Object clone()
          Clones the object
 boolean equals(Object o)
           
 Date getEnd()
          The end of the timeframe.
 Date getStart()
          The beginning of the timeframe.
 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(Date start,
                     Date end)
Creates a new instance of DateTimeRange

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

getEnd

public Date getEnd()
The end of the timeframe.

Returns:
The end of the timeframe.

getStart

public Date getStart()
The beginning of the timeframe.

Returns:
The beginning of the timeframe.

clone

public Object clone()
Clones the object

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

toString

public String toString()
String representation of the object.

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

equals

public boolean equals(Object o)
Overrides:
equals in class Object


Copyright © 2013 ROME Project. All Rights Reserved.