示例#1
0
 public void add(Object obj, long field, double value) {
   FieldAccess w = new DoubleFieldAccess(obj, field, value);
   if (!entries.add(w)) entries.replace(w);
 }
示例#2
0
 public void add(Object obj, long field, short value) {
   FieldAccess w = new ShortFieldAccess(obj, field, value);
   if (!entries.add(w)) entries.replace(w);
 }
示例#3
0
 public void add(Object obj, long field, char value) {
   FieldAccess w = new CharFieldAccess(obj, field, value);
   if (!entries.add(w)) entries.replace(w);
 }
示例#4
0
 public void add(Object obj, long field, boolean value) {
   FieldAccess w = new BooleanFieldAccess(obj, field, value);
   if (!entries.add(w)) entries.replace(w);
 }
示例#5
0
 public FieldAccess get(Object obj, long field) {
   tempFieldAccess.init(obj, field);
   return entries.get(tempFieldAccess);
 }
示例#6
0
 public boolean isEmpty() {
   return entries.isEmpty();
 }
示例#7
0
 public void clear() {
   entries.clear();
 }