ITPub博客

首页 > IT职业 > IT生活 > (七) Spring学习总结

(七) Spring学习总结

IT生活 作者:专注的阿熊 时间:2021-06-18 17:25:10 0 删除 编辑

package com.xxx.pojo;/**

  * @author shkstart

  * @create 2021-06-11 17:45

  */

import java.util.*;

/**

  *@program: Spring_study

  *@description:

  *@author: XieXianXin

  *@create: 2021-06-11 17:45

  */

public class Student {

     private String name;

     private Book book;

     private String[] course;

     private List<String> hobbies;

     private Map<String,String> card;

     private Set<String> fruit;

     private String marriage;

     private Properties info;

     public Student() {

     }

     public Student(String name, Book book, String[] course, List<String> hobbies, Map<String, String> card, Set<String> fruit, String marriage, Properties info) {

         this.name = name;

         this.book = book;

         this.course = course;

         this.hobbies = hobbies;

         this.card = card;

         this.fruit = fruit;

         this.marriage = marriage;

         this.info = info;

     }

     @Override

     public String toString() {

         return "Student{" +

                 "name='" + name + '\'' +

                 ", book=" + book +

                 ", course=" + 外汇跟单gendan5.comArrays.toString(course) +

                 ", hobbies=" + hobbies +

                 ", card=" + card +

                 ", fruit=" + fruit +

                 ", marriage='" + marriage + '\'' +

                 ", info=" + info +

                 '}';

     }

     public String getName() {

         return name;

     }

     public void setName(String name) {

         this.name = name;

     }

     public Book getBook() {

         return book;

     }

     public void setBook(Book book) {

         this.book = book;

     }

     public String[] getCourse() {

         return course;

     }

     public void setCourse(String[] course) {

         this.course = course;

     }

     public List<String> getHobbies() {

         return hobbies;

     }

     public void setHobbies(List<String> hobbies) {

         this.hobbies = hobbies;

     }

     public Map<String, String> getCard() {

         return card;

     }

     public void setCard(Map<String, String> card) {

         this.card = card;

     }

     public Set<String> getFruit() {

         return fruit;

     }

     public void setFruit(Set<String> fruit) {

         this.fruit = fruit;

     }

     public String getMarriage() {

         return marriage;

     }

     public void setMarriage(String marriage) {

         this.marriage = marriage;

     }

     public Properties getInfo() {

         return info;

     }

     public void setInfo(Properties info) {

         this.info = info;

     }

}


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69946337/viewspace-2777394/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-08-23

  • 博文量
    410
  • 访问量
    276899