@@ -44,111 +44,4 @@ public class ScheduledV2Event implements Serializable, Cloneable {
44
44
45
45
private List <String > resources ;
46
46
47
- /**
48
- * Returns a string representation of this object; useful for testing and debugging.
49
- *
50
- * @return A string representation of this object.
51
- * @see Object#toString()
52
- */
53
- @ Override
54
- public String toString () {
55
- StringBuilder sb = new StringBuilder ();
56
- sb .append ("{" );
57
- if (getVersion () != null )
58
- sb .append ("version: " ).append (getVersion ()).append ("," );
59
- if (getAccount () != null )
60
- sb .append ("account: " ).append (getAccount ()).append ("," );
61
- if (getRegion () != null )
62
- sb .append ("region: " ).append (getRegion ()).append ("," );
63
- if (getDetail () != null )
64
- sb .append ("detail: " ).append (getDetail ()).append ("," );
65
- if (getDetailType () != null )
66
- sb .append ("detailType: " ).append (getDetailType ()).append ("," );
67
- if (getSource () != null )
68
- sb .append ("source: " ).append (getSource ()).append ("," );
69
- if (getId () != null )
70
- sb .append ("id: " ).append (getId ()).append ("," );
71
- if (getTime () != null )
72
- sb .append ("time: " ).append (getTime ().toString ()).append ("," );
73
- if (getResources () != null )
74
- sb .append ("resources: " ).append (getResources ());
75
- sb .append ("}" );
76
- return sb .toString ();
77
- }
78
-
79
- @ Override
80
- public boolean equals (Object obj ) {
81
- if (this == obj )
82
- return true ;
83
- if (obj == null )
84
- return false ;
85
-
86
- if (!(obj instanceof ScheduledV2Event ))
87
- return false ;
88
- ScheduledV2Event other = (ScheduledV2Event ) obj ;
89
- if (other .getVersion () == null ^ this .getVersion () == null )
90
- return false ;
91
- if (other .getVersion () != null && other .getVersion ().equals (this .getVersion ()) == false )
92
- return false ;
93
- if (other .getAccount () == null ^ this .getAccount () == null )
94
- return false ;
95
- if (other .getAccount () != null && other .getAccount ().equals (this .getAccount ()) == false )
96
- return false ;
97
- if (other .getRegion () == null ^ this .getRegion () == null )
98
- return false ;
99
- if (other .getRegion () != null && other .getRegion ().equals (this .getRegion ()) == false )
100
- return false ;
101
- if (other .getDetail () == null ^ this .getDetail () == null )
102
- return false ;
103
- if (other .getDetail () != null && other .getDetail ().equals (this .getDetail ()) == false )
104
- return false ;
105
- if (other .getDetailType () == null ^ this .getDetailType () == null )
106
- return false ;
107
- if (other .getDetailType () != null && other .getDetailType ().equals (this .getDetailType ()) == false )
108
- return false ;
109
- if (other .getSource () == null ^ this .getSource () == null )
110
- return false ;
111
- if (other .getSource () != null && other .getSource ().equals (this .getSource ()) == false )
112
- return false ;
113
- if (other .getId () == null ^ this .getId () == null )
114
- return false ;
115
- if (other .getId () != null && other .getId ().equals (this .getId ()) == false )
116
- return false ;
117
- if (other .getTime () == null ^ this .getTime () == null )
118
- return false ;
119
- if (other .getTime () != null && other .getTime ().equals (this .getTime ()) == false )
120
- return false ;
121
- if (other .getResources () == null ^ this .getResources () == null )
122
- return false ;
123
- if (other .getResources () != null && other .getResources ().equals (this .getResources ()) == false )
124
- return false ;
125
- return true ;
126
- }
127
-
128
- @ Override
129
- public int hashCode () {
130
- final int prime = 31 ;
131
- int hashCode = 1 ;
132
-
133
- hashCode = prime * hashCode + ((getVersion () == null ) ? 0 : getVersion ().hashCode ());
134
- hashCode = prime * hashCode + ((getAccount () == null ) ? 0 : getAccount ().hashCode ());
135
- hashCode = prime * hashCode + ((getRegion () == null ) ? 0 : getRegion ().hashCode ());
136
- hashCode = prime * hashCode + ((getDetail () == null ) ? 0 : getDetail ().hashCode ());
137
- hashCode = prime * hashCode + ((getDetailType () == null ) ? 0 : getDetailType ().hashCode ());
138
- hashCode = prime * hashCode + ((getSource () == null ) ? 0 : getSource ().hashCode ());
139
- hashCode = prime * hashCode + ((getId () == null ) ? 0 : getId ().hashCode ());
140
- hashCode = prime * hashCode + ((getTime () == null ) ? 0 : getTime ().hashCode ());
141
- hashCode = prime * hashCode + ((getResources () == null ) ? 0 : getResources ().hashCode ());
142
- return hashCode ;
143
- }
144
-
145
- @ Override
146
- public ScheduledV2Event clone () {
147
- try {
148
- return (ScheduledV2Event ) super .clone ();
149
- } catch (CloneNotSupportedException e ) {
150
- throw new IllegalStateException ("Got a CloneNotSupportedException from Object.clone()" , e );
151
- }
152
- }
153
-
154
47
}
0 commit comments