1 21 package com.db4o.test.types; 22 23 public class ObjectSimplePrivate extends RTest implements InterfaceHelper 24 { 25 private String name; 26 27 public ObjectSimplePrivate(){ 28 } 29 30 public ObjectSimplePrivate(String a_name){ 31 name = a_name; 32 } 33 34 public boolean equals(Object obj){ 35 if(obj != null){ 36 if(obj instanceof ObjectSimplePrivate){ 37 if(name != null){ 38 return name.equals(((ObjectSimplePrivate)obj).name); 39 } 40 } 41 } 42 return false; 43 } 44 45 46 public void set(int ver){ 47 if(ver == 1){ 48 name = "OneONEOneONEOneONEOneONEOneONEOneONE"; 49 }else{ 50 name = "TwoTWOTwoTWOTwoTWOTwoTWOTwoTWO"; 51 } 52 } 53 54 public boolean jdk2(){ 55 return true; 56 } 57 } 58 | Popular Tags |