1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package com.hack23.cia.service.api.action.common;
20
21 import org.apache.commons.lang3.builder.EqualsBuilder;
22 import org.apache.commons.lang3.builder.HashCodeBuilder;
23 import org.apache.commons.lang3.builder.ToStringBuilder;
24 import org.apache.commons.lang3.builder.ToStringStyle;
25
26
27
28
29 public abstract class AbstractRequest implements ServiceRequest {
30
31
32 private static final long serialVersionUID = 1L;
33
34
35
36
37 public AbstractRequest() {
38 super();
39 }
40
41 @Override
42 public final boolean equals(Object obj) {
43 return EqualsBuilder.reflectionEquals(this, obj);
44 }
45
46 @Override
47 public final String toString() {
48 return ToStringBuilder.reflectionToString(this, ToStringStyle.NO_FIELD_NAMES_STYLE);
49 }
50
51 @Override
52 public final int hashCode() {
53 return HashCodeBuilder.reflectionHashCode(this);
54 }
55
56 }