Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package model;
- import java.util.HashSet;
- import java.util.Set;
- import javax.xml.bind.annotation.XmlElement;
- import javax.xml.bind.annotation.XmlRootElement;
- /**
- *
- * @author iosdev
- */
- @XmlRootElement
- public class Team {
- private Set<Student> members;
- public Team(){
- members = new HashSet<>();
- members.add(new Student("Jill", 999));
- members.add(new Student("John", 888));
- members.add(new Student("Bob", 777));
- }
- @XmlElement
- public Set<Student> getMembers(){
- return members;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement