1 4 package com.tctest.performance.sampledata; 5 6 public final class OrganicObjectGraphNode_65 extends OrganicObjectGraph { 7 8 private int size = 4; 9 private int[] types = new int[] { 1, 0, 2, 2 }; 10 11 private String f0; 12 private int f1; 13 private short f2; 14 private short f3; 15 16 public OrganicObjectGraphNode_65(int sequenceNumber, String envKey) { 17 super(sequenceNumber, envKey); 18 } 19 20 public OrganicObjectGraphNode_65() { 21 super(); 22 } 23 24 protected int getSize() { 25 return size; 26 } 27 28 protected int getType(int index) { 29 return types[index]; 30 } 31 32 protected void setValue(int index, String value) { 33 switch (index) { 34 case 0: 35 f0 = value; 36 default: 37 break; 38 } 39 } 40 41 protected void setValue(int index, int value) { 42 switch (index) { 43 case 1: 44 f1 = value; 45 default: 46 break; 47 } 48 } 49 50 protected void setValue(int index, short value) { 51 switch (index) { 52 case 2: 53 f2 = value; 54 case 3: 55 f3 = value; 56 default: 57 break; 58 } 59 } 60 61 public boolean equals(Object rawObj) { 62 if (!(rawObj instanceof OrganicObjectGraphNode_65)) { System.out.println("not instanceof"); System.out.println(rawObj.getClass().getName() + "=OrganicObjectGraphNode_65"); return false; } 63 OrganicObjectGraphNode_65 obj = (OrganicObjectGraphNode_65) rawObj; 64 if (!("" + f0).equals("" + obj.f0)) return false; 65 if (f1 != obj.f1) return false; 66 if (f2 != obj.f2) return false; 67 if (f3 != obj.f3) return false; 68 return super.equals(obj); 69 } 70 } 71 | Popular Tags |