Here's the class definition:
public final class cLaboratory implements Serializable {
/** The unique laboratory ID */
protected String aNewLabID;
/** The name of the owner/manager of this lab. */
protected String aManagerName;
/** default constructor */
protected cLaboratory() {
}
/**
* Minimal constructor
*/
public cLaboratory(String aNewLabID) {
super();
aLabID = 0;
this.aNewLabID = aNewLabID;
mInit();
}
private String getaNewLabID() {
return this.aNewLabID;
}
private void setaNewLabID(String newLabID) {
this.aNewLabID = aNewLabID;
}
private String getaManagerName() {
return this.aManagerName;
}
private void setaManagerName(String aManagerName) {
this.aManagerName = aManagerName;
}
public String toString() {
return new ToStringBuilder(this)
.append("aNewLabID", getaNewLabID())
.toString();
}
public boolean equals(Object other) {
if ( !(other instanceof cLaboratory) ) return false;
cLaboratory castOther = (cLaboratory) other;
return new EqualsBuilder()
.append(this.getaNewLabID(), castOther.getaNewLabID())
.isEquals();
}
public int hashCode() {
return new HashCodeBuilder()
.append(getaNewLabID())
.toHashCode();
}
}
epbernard wrote:
Can I have a look at cLaboratory class code ?