Back to project page MWM-for-Android-Gen1.
The source code is released under:
Apache License
If you think the Android project MWM-for-Android-Gen1 listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.anddev.android.weatherforecast.weather; // www . java 2 s. c o m import java.util.ArrayList; /** * Combines one WeatherCurrentCondition with a List of * WeatherForecastConditions. */ public class WeatherSet { // =========================================================== // Fields // =========================================================== private WeatherCurrentCondition myCurrentCondition = null; private ArrayList<WeatherForecastCondition> myForecastConditions = new ArrayList<WeatherForecastCondition>(4); // =========================================================== // Getter & Setter // =========================================================== public WeatherCurrentCondition getWeatherCurrentCondition() { return myCurrentCondition; } public void setWeatherCurrentCondition( WeatherCurrentCondition myCurrentWeather) { this.myCurrentCondition = myCurrentWeather; } public ArrayList<WeatherForecastCondition> getWeatherForecastConditions() { return this.myForecastConditions; } public WeatherForecastCondition getLastWeatherForecastCondition() { return this.myForecastConditions .get(this.myForecastConditions.size() - 1); } }