1 10 11 package com.triactive.jdo.test; 12 13 14 15 22 23 class AReallyObnoxiouslyLongWindedNamedObject extends KeywordConflict 24 { 25 private KeywordConflict aReallyObnoxiouslyLongWindedNamedField; 26 27 28 public AReallyObnoxiouslyLongWindedNamedObject() 29 { 30 super(); 31 } 32 33 34 39 40 public void fillRandom() 41 { 42 super.fillRandom(); 43 44 aReallyObnoxiouslyLongWindedNamedField = null; 45 } 46 47 48 59 60 public boolean compareTo(Object obj) 61 { 62 if (obj == this) 63 return true; 64 65 if (!(obj instanceof AReallyObnoxiouslyLongWindedNamedObject) || !super.compareTo(obj)) 66 return false; 67 68 AReallyObnoxiouslyLongWindedNamedObject o = (AReallyObnoxiouslyLongWindedNamedObject)obj; 69 70 return aReallyObnoxiouslyLongWindedNamedField == o.aReallyObnoxiouslyLongWindedNamedField; 71 } 72 73 74 80 81 public String toString() 82 { 83 StringBuffer s = new StringBuffer (super.toString()); 84 85 s.append(" aReallyObnoxiouslyLongWindedNamedField = ").append(aReallyObnoxiouslyLongWindedNamedField); 86 s.append('\n'); 87 88 return s.toString(); 89 } 90 } 91 | Popular Tags |