com.sun.syndication.feed.module.yahooweather.types
Class Astronomy

java.lang.Object
  extended by com.sun.syndication.feed.module.yahooweather.types.Astronomy
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Astronomy
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

Forecast information about current astronomical conditions. Attributes:

Version:
$Id: Astronomy.java,v 1.2 2008/01/22 14:50:05 kebernet Exp $
Author:
Robert "kebernet" Cooper
See Also:
Serialized Form

Constructor Summary
Astronomy()
          Simple constructor.
Astronomy(java.util.Date sunrise, java.util.Date sunset)
          Constructs a new Astronomy object
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object o)
           
 java.util.Date getSunrise()
          Time of sunrise
 java.util.Date getSunset()
          Time of sunset
 int hashCode()
           
 void setSunrise(java.util.Date sunrise)
          Time of sunrise
 void setSunset(java.util.Date sunset)
          Time of sunset
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Astronomy

public Astronomy()
Simple constructor.


Astronomy

public Astronomy(java.util.Date sunrise,
                 java.util.Date sunset)
Constructs a new Astronomy object

Parameters:
sunrise - time of sunrise (from 0ms)
sunset - time of sunset (from 0ms)
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

equals

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

hashCode

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getSunrise

public java.util.Date getSunrise()
Time of sunrise

Returns:
ime of sunrise (from 0ms)

setSunrise

public void setSunrise(java.util.Date sunrise)
Time of sunrise

Parameters:
sunrise - ime of sunrise (from 0ms)

getSunset

public java.util.Date getSunset()
Time of sunset

Returns:
time of sunset (from 0ms)

setSunset

public void setSunset(java.util.Date sunset)
Time of sunset

Parameters:
sunset - time of sunset (from 0ms)


Copyright © 2006-2009. All Rights Reserved.