01: /*
02: * Copyright (C) 2003, 2004 Joe Walnes.
03: * Copyright (C) 2006, 2007 XStream Committers.
04: * All rights reserved.
05: *
06: * The software in this package is published under the terms of the BSD
07: * style license a copy of which has been included with this distribution in
08: * the LICENSE.txt file.
09: *
10: * Created on 25. October 2003 by Joe Walnes
11: */
12: package com.thoughtworks.acceptance.objects;
13:
14: import org.apache.commons.lang.builder.EqualsBuilder;
15: import org.apache.commons.lang.builder.HashCodeBuilder;
16: import org.apache.commons.lang.builder.ToStringBuilder;
17:
18: import java.io.Serializable;
19:
20: public class StandardObject implements Serializable {
21: public boolean equals(Object obj) {
22: return EqualsBuilder.reflectionEquals(this , obj);
23: }
24:
25: public int hashCode() {
26: return HashCodeBuilder.reflectionHashCode(this );
27: }
28:
29: public String toString() {
30: return ToStringBuilder.reflectionToString(this);
31: }
32: }
|