(七) Spring學習總結

專注的阿熊發表於2021-06-18

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部落格 ” ,連結:http://blog.itpub.net/69946337/viewspace-2777394/,如需轉載,請註明出處,否則將追究法律責任。