zoukankan      html  css  js  c++  java
  • JAVA日报

    从零开始的体温app开发(bean1)

    package bean;

    import java.io.Serializable;

    public class User implements Serializable {
    private String name;
    private String num;
    private String cl;
    private String date;
    private String time;
    private String area;
    private String tem;
    private String qw;
    public User() {
    }

    public User(String name,String num,String cl, String date, String time, String area, String tem,String qw) {
    this.name=name;
    this.num=num;
    this.cl=cl;
    this.date=date;
    this.time=time;
    this.area=area;
    this.tem=tem;
    this.qw=qw;
    }

    public String get(String str) {
    String temp = null;
    if(str.equals("name")) {
    temp=name;
    }else if(str.equals("num")) {
    temp=num;
    }else if(str.equals("cl")) {
    temp=cl;
    }else if(str.equals("time")) {
    temp=time;
    }else if(str.equals("area")) {
    temp=area;
    }else if(str.equals("tem")) {
    temp=tem;
    }else if(str.equals("date")) {
    temp=date;
    }
    else if(str.equals("qw")) {
    temp=qw;
    }
    return temp;
    }
    public void set(String str, String temp) {
    if(str.equals("name")) {
    name=temp;
    }else if(str.equals("num")) {
    num=temp;
    }else if(str.equals("cl")) {
    cl=temp;
    }else if(str.equals("time")) {
    time=temp;
    }else if(str.equals("area")) {
    area=temp;
    }else if(str.equals("tem")) {
    tem=temp;
    }else if(str.equals("date")) {
    date=temp;
    }
    else if(str.equals("qw")) {
    date=qw;
    }
    }


    public String getName() {
    return name;
    }

    public void setName(String name) {
    this.name = name;
    }

    public String getNum() {
    return num;
    }

    public void setNum(String num) {
    this.num = num;
    }

    public String getCl() {
    return cl;
    }

    public void setCl(String cl) {
    this.cl = cl;
    }

    public String getDate() {
    return date;
    }

    public void setDate(String date) {
    this.date = date;
    }

    public String getTime() {
    return time;
    }

    public void setTime(String time) {
    this.time = time;
    }

    public String getArea() {
    return area;
    }

    public void setArea(String area) {
    this.area = area;
    }

    public String getTem() {
    return tem;
    }

    public void setTem(String tem) {
    this.tem = tem;
    }

    public String getQw() {
    return qw;
    }

    public void setQw(String qw) {
    this.qw = qw;
    }
    }
  • 相关阅读:
    【Demo 0062】文件遍历
    【Demo 0068】获取分区信息
    【Demo 0060】记录个人信息
    【Demo 0069】文件读写
    【Demo 0064】监控文件/目录变更
    【Demo 0067】文件类型关联图标
    【Demo 0065】获取被修改的文件/目录
    【Demo 0062】目录及文件基本操作
    【Demo 0061】打开与保存文件
    【Demo 0066】监控被变更文件/目录(完成端口)
  • 原文地址:https://www.cnblogs.com/mumulailai/p/14909384.html
Copyright © 2011-2022 走看看