1 | public class C2 extends B {↵ | | 1 | public class Circular {↵
|
| | | 2 | ↵
|
2 | private String address;↵ | | 3 | private String id;↵
|
3 | private C1 c1;↵ | | 4 | private Class clazz;↵
|
4 | private String c2Name;↵ | | 5 | private ↵
|
5 | private Collection c1s = new ArrayList();↵ | | 6 | Circular other;↵
|
| | | 7 | private Object anyEntity;↵
|
| | | 8 | ↵
|
| | | 9 | /**↵
|
| | | 10 | * Constructor for Circular.↵
|
| | | 11 | */↵
|
| | | 12 | public Circular() {↵
|
| | | 13 | super();↵
|
| | | 14 | }↵
|
| | | 15 | ↵
|
| | | 16 | /**↵
|
| | | 17 | * Returns the clazz.↵
|
| | | 18 | * @return Class↵
|
| | | 19 | */↵
|
| | | 20 | public Class getClazz() {↵
|
| | | 21 | return clazz;↵
|
| | | 22 | }↵
|
| | | 23 | ↵
|
6 | /**↵ | | 24 | /**↵
|
7 | * Returns the address.↵ | | 25 | * Returns the id.↵
|
8 | * @return String↵ | | 26 | * @return String↵
|
9 | */↵ | | 27 | */↵
|
10 | public String getAddress() {↵ | | 28 | public String getId() {↵
|
11 | return address;↵ | | 29 | return id;↵
|
12 | }↵ | | 30 | }↵
|
13 | ↵ | | 31 | ↵
|
14 | /**↵ | | 32 | /**↵
|
15 | * Sets the address.↵ | | 33 | * Sets the clazz.↵
|
16 | * @param address The address to set↵ | | 34 | * @param clazz The clazz to set↵
|
17 | */↵ | | 35 | */↵
|
18 | public void setAddress(String address) {↵ | | 36 | public void setClazz(Class clazz) {↵
|
19 | this.address = address;↵ | | 37 | this.↵
|
20 | }↵ | | |
|
21 | ↵ | | |
|
22 | /**↵ | | |
|
23 | * @return Returns the c.↵ | | |
|
24 | */↵ | | |
|
25 | public C1 getC1() {↵ | | |
|
26 | return c1;↵ | | |
|
27 | }↵ | | |
|
|
28 | /**↵ | | 38 | clazz = clazz;↵
|
| | | 39 | }↵
|
| | | 40 | ↵
|
| | | 41 | /**↵
|
| | | 42 | * Sets the id.↵
|
29 | * @param c The c to set.↵ | | 43 | * @param id The id to set↵
|
30 | */↵ | | 44 | */↵
|
31 | public void setC1(C1 c) {↵ | | 45 | public void setId(String id) {↵
|
32 | this.c1 = c;↵ | | 46 | this.id = id;↵
|
33 | }↵ | | 47 | }↵
|
| | | 48 | ↵
|
34 | /**↵ | | 49 | /**↵
|
35 | * @return Returns the cs.↵ | | 50 | * Returns the ↵
|
36 | */↵ | | |
|
37 | public Collection getC1s↵ | | 51 | other.↵
|
| | | 52 | * @return Circular↵
|
| | | 53 | */↵
|
38 | () {↵ | | 54 | public Circular getOther() {↵
|
39 | return c1s;↵ | | 55 | return other;↵
|
40 | }↵ | | 56 | }↵
|
| | | 57 | ↵
|
41 | /**↵ | | 58 | /**↵
|
42 | * @param cs The cs↵ | | 59 | * Sets the other.↵
|
43 | to set.↵ | | 60 | * @param other The other to set↵
|
44 | */↵ | | 61 | */↵
|
45 | public void setC1s(Collection cs) {↵ | | 62 | public void set↵
|
46 | this.c1s = cs;↵ | | |
|
47 | }↵ | | |
|
|
48 | public String getC2Name() {↵ | | |
|
49 | return c2Name;↵ | | |
|
50 | }↵ | | |
|
|
51 | public void setC2Name(String name) {↵ | | |
|
52 | c2Name = name | | 63 | Other(Circular other) {↵
|
| | | 64 | this.other = other;↵
|
| | | 65 | }↵
|
| | | 66 | ↵
|
| | | 67 | /**↵
|
| | | 68 | * Returns the anyEntity.↵
|
| | | 69 | * @return Object↵
|
| | | 70 | */↵
|
| | | 71 | public Object getAnyEntity() {↵
|
| | | 72 | return anyEntity;↵
|
| | | 73 | }↵
|
| | | 74 | ↵
|
| | | 75 | /**↵
|
| | | 76 | * Sets the anyEntity.↵
|
| | | 77 | * @param anyEntity The anyEntity to set↵
|
| | | 78 | */↵
|
| | | 79 | public void setAnyEntity(Object anyEntity) {↵
|
| | | 80 | this.anyEntity = anyEntity
|