Skip to content

Instantly share code, notes, and snippets.

@addicted2sounds
Created February 27, 2016 06:15
Show Gist options
  • Save addicted2sounds/cdd4f57f0545b2e270c7 to your computer and use it in GitHub Desktop.
Save addicted2sounds/cdd4f57f0545b2e270c7 to your computer and use it in GitHub Desktop.
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