KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > thoughtworks > acceptance > StandardObject


1 package com.thoughtworks.acceptance;
2
3 import org.apache.commons.lang.builder.EqualsBuilder;
4 import org.apache.commons.lang.builder.HashCodeBuilder;
5 import org.apache.commons.lang.builder.ToStringBuilder;
6
7 import java.io.Serializable JavaDoc;
8
9 public class StandardObject implements Serializable JavaDoc {
10     public boolean equals(Object JavaDoc obj) {
11         return EqualsBuilder.reflectionEquals(this, obj);
12     }
13
14     public int hashCode() {
15         return HashCodeBuilder.reflectionHashCode(this);
16     }
17
18     public String JavaDoc toString() {
19         return ToStringBuilder.reflectionToString(this);
20     }
21 }
22
Popular Tags