1 5 6 package com.raptus.owxv3; 7 8 9 35 public class PairOfObjects extends Object 36 { 37 39 42 protected Object one = null; 43 44 47 protected Object two = null; 48 49 51 53 56 public PairOfObjects() 57 { 58 } 59 60 63 public PairOfObjects(Object one, Object two) 64 { 65 setObjects(one, two); 66 } 67 68 73 public void setObjectOne(Object one) 74 { 75 this.one = one; 76 } 77 78 83 public void setObjectTwo(Object two) 84 { 85 this.two = two; 86 } 87 88 94 public void setObjects(Object one, Object two) 95 { 96 this.one = one; this.two = two; 97 } 98 99 104 public Object getObjectOne() 105 { 106 return one; 107 } 108 109 114 public Object getObjectTwo() 115 { 116 return two; 117 } 118 119 122 public void reset() 123 { 124 one = null; 125 two = null; 126 } 127 128 134 public boolean isValid() 135 { 136 return ((one != null) && (two != null)); 137 } 138 139 } 140 141 142 | Popular Tags |