1 5 6 package org.apache.ojb.broker.cloneable; 7 8 14 public class CloneableGroup implements Cloneable  15 { 16 private Integer id; 17 private String groupName; 18 19 24 public Object clone() throws CloneNotSupportedException  25 { 26 return super.clone(); 27 } 28 29 32 public final String getName() 33 { 34 return groupName; 35 } 36 37 public final void setName(String name) 38 { 39 this.groupName = name; 40 } 41 42 public String toString() 43 { 44 return "CloneableGroup#" + System.identityHashCode(this) + " - " + id + ": " + groupName; 45 } 46 } 47 | Popular Tags |