1 18 package org.objectweb.speedo.pobjects.userid; 19 20 24 public class BasicB { 25 public String id1; 26 public long id2; 27 28 public String f1 = null; 29 public int f2 = 0; 30 31 32 private BasicB(String f1, int f2, boolean b) { 33 this.f1 = f1; 34 this.f2 = f2; 35 } 36 public BasicB(String id1, int id2) { 37 this.id1 = id1; 38 this.id2 = id2; 39 } 40 41 public BasicB(String id1, int id2, String f1, int f2) { 42 this(id1, id2); 43 this.f1 = f1; 44 this.f2 = f2; 45 } 46 47 protected BasicB(String f1) { 48 this.f1 = f1; 49 } 50 public BasicB() { 51 } 52 53 public String getId1() { 54 return id1; 55 } 56 57 public long getId2() { 58 return id2; 59 } 60 61 public String readF1() { 62 return f1; 63 } 64 65 public void writeF1(String f1) { 66 this.f1 = f1; 67 } 68 69 public int readF2() { 70 return f2; 71 } 72 73 public void writeF2(int f2) { 74 this.f2 = f2; 75 } 76 77 public String readF1_F2() { 78 return f1 + f2; 79 } 80 81 public void writeF1() { 82 f1 = "azerty"; 83 } 84 85 public void writeF2() { 86 f2 = 1; 87 } 88 89 public void writeF1_F2() { 90 f1 = "qsdfgh"; 91 f2 = 2; 92 } 93 94 public void delegateWriteF1() { 95 writeF1(); 96 } 97 } 98 | Popular Tags |