forecast.java

来自「yahoo 所使用的 天气预报的解析代码」· Java 代码 · 共 75 行

JAVA
75
字号
/*
 * Forcecast.java
 *
 * Created on May 25, 2007, 5:08 PM
 *
 */

package yweatherbeta;

/**
 *
 * @author BEN
 */
public class Forecast {
    private String day;
    private String date;
    private int tempLow;
    private int tempHigh;
    private String condition;
    private int code;
    /** Creates a new instance of Forcecast */
    public Forecast() {
    }
    
    public String getDay() {
        return day;
    }
    
    void setDay(String day) {
        this.day = day;
    }
    
    public String getDate() {
        return date;
    }
    
    void setDate(String date) {
        this.date = date;
    }
    
    public int getTempLow() {
        return tempLow;
    }
    
    void setTempLow(int tempLow) {
        this.tempLow = tempLow;
    }
    
    public int getTempHigh() {
        return tempHigh;
    }
    
    void setTempHigh(int tempHigh) {
        this.tempHigh = tempHigh;
    }
    
    public String getCondition() {
        return condition;
    }
    
    void setCondition(String condition) {
        this.condition = condition;
    }
    
    public int getCode() {
        return code;
    }
    
    void setCode(int code) {
        this.code = code;
    }
    
    
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?