Created
February 27, 2016 06:15
-
-
Save addicted2sounds/cdd4f57f0545b2e270c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.company; | |
/** | |
* Created by addicted on 27.02.16. | |
*/ | |
public class Weather { | |
private double windDirection; | |
private double windSpeed; | |
private double temperature; | |
private PrecipitationTypes precipitations; | |
@Override | |
public String toString() { | |
return "Weather{" + | |
"windDirection=" + windDirection + | |
", windSpeed=" + windSpeed + | |
", temperature=" + temperature + | |
", precipitations=" + precipitations + | |
'}'; | |
} | |
public double getWindDirection() { | |
return windDirection; | |
} | |
public void setWindDirection(double windDirection) { | |
this.windDirection = windDirection; | |
} | |
public double getWindSpeed() { | |
return windSpeed; | |
} | |
public void setWindSpeed(double windSpeed) { | |
this.windSpeed = windSpeed; | |
} | |
public double getTemperature() { | |
return temperature; | |
} | |
public void setTemperature(double temperature) { | |
this.temperature = temperature; | |
} | |
public PrecipitationTypes getPrecipitations() { | |
return precipitations; | |
} | |
public void setPrecipitations(PrecipitationTypes precipitations) { | |
this.precipitations = precipitations; | |
} | |
enum PrecipitationTypes { RAIN, SNOW, SUNNY, CLOUDY } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment