Java8种基本数据类型及其包装类以及Obj和Str对应的get和set方法

package com.example.demo;

/**
 * @author Mr.xiong
 * #description model
 * #date: 2022/4/8 10:08
 * @version v1.0.0
 * @since jdk8
 */
public class model {
   private int a;
   private Integer b;
   private double c;
   private Double d;
   private float e;
   private Float f;
   private char g;
   private Character h;
   private String i;
   private Object j;
   private byte k;
   private Byte l;
   private short m;
   private Short n;
   private long o;
   private Long p;
   private Boolean q;
   private boolean r;

    public int getA() {
        return a;
    }

    public void setA(int a) {
        this.a = a;
    }

    public Integer getB() {
        return b;
    }

    public void setB(Integer b) {
        this.b = b;
    }

    public double getC() {
        return c;
    }

    public void setC(double c) {
        this.c = c;
    }

    public Double getD() {
        return d;
    }

    public void setD(Double d) {
        this.d = d;
    }

    public float getE() {
        return e;
    }

    public void setE(float e) {
        this.e = e;
    }

    public Float getF() {
        return f;
    }

    public void setF(Float f) {
        this.f = f;
    }

    public char getG() {
        return g;
    }

    public void setG(char g) {
        this.g = g;
    }

    public Character getH() {
        return h;
    }

    public void setH(Character h) {
        this.h = h;
    }

    public String getI() {
        return i;
    }

    public void setI(String i) {
        this.i = i;
    }

    public Object getJ() {
        return j;
    }

    public void setJ(Object j) {
        this.j = j;
    }

    public byte getK() {
        return k;
    }

    public void setK(byte k) {
        this.k = k;
    }

    public Byte getL() {
        return l;
    }

    public void setL(Byte l) {
        this.l = l;
    }

    public short getM() {
        return m;
    }

    public void setM(short m) {
        this.m = m;
    }

    public Short getN() {
        return n;
    }

    public void setN(Short n) {
        this.n = n;
    }

    public long getO() {
        return o;
    }

    public void setO(long o) {
        this.o = o;
    }

    public Long getP() {
        return p;
    }

    public void setP(Long p) {
        this.p = p;
    }

    public Boolean getQ() {
        return q;
    }

    public void setQ(Boolean q) {
        this.q = q;
    }

    public boolean isR() {
        return r;
    }

    public void setR(boolean r) {
        this.r = r;
    }
}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值