Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package teste;
- import java.util.LinkedList;
- import java.util.List;
- import javax.xml.bind.annotation.XmlAccessType;
- import javax.xml.bind.annotation.XmlAccessorType;
- import javax.xml.bind.annotation.XmlRootElement;
- @XmlRootElement
- @XmlAccessorType(XmlAccessType.FIELD)
- public class Pojo {
- private String aaa;
- private int q;
- private List<Foo>cont;
- public Pojo() {
- }
- public Pojo(int k) {
- aaa = "teste";
- q = k;
- cont = new LinkedList<Foo>();
- cont.add(new Foo(4.5));
- cont.add(new Foo(14.3));
- cont.add(new Foo(7));
- }
- public String getAaa() {
- return aaa;
- }
- public void setAaa(String aaa) {
- this.aaa = aaa;
- }
- public int getQ() {
- return q;
- }
- public void setQ(int q) {
- this.q = q;
- }
- public List<Foo> getCont() {
- return cont;
- }
- public void setCont(List<Foo> cont) {
- this.cont = cont;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement