public class Astronomy extends Object implements Serializable, Cloneable
Constructor and Description |
---|
Astronomy()
Simple constructor.
|
Astronomy(Date sunrise,
Date sunset) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
boolean |
equals(Object o) |
Date |
getSunrise()
Time of sunrise
|
Date |
getSunset()
Time of sunset
|
int |
hashCode() |
void |
setSunrise(Date sunrise)
Time of sunrise
|
void |
setSunset(Date sunset)
Time of sunset
|
String |
toString() |
public Date getSunrise()
public void setSunrise(Date sunrise)
sunrise
- ime of sunrise (from 0ms)public Date getSunset()
public void setSunset(Date sunset)
sunset
- time of sunset (from 0ms)Copyright © 2020. All rights reserved.