Java8新特性_Optional容器类

package com.zs.boot.controller;

public class Employee implements Comparable{

private int id;
private String name;
private int age;
private double salary;
private Status status;

public Employee() {
}

public Employee(String name) {
this.name = name;
}

public Employee(String name, int age) {
this.name = name;
this.age = age;
}

public Employee(int id, String name, int age, double salary) {
this.id = id;
this.name = name;
this.age = age;

Java8新特性_Optional容器类最先出现在Python成神之路

版权声明:
作者:Alex
链接:https://www.techfm.club/p/7677.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>