File tree Expand file tree Collapse file tree 5 files changed +15
-15
lines changed
gcloud-java-compute/src/main/java/com/google/gcloud/compute Expand file tree Collapse file tree 5 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 32
32
*
33
33
* @see <a href="https://cloud.google.com/compute/docs/reference/latest/diskTypes">Disk Types</a>
34
34
*/
35
- public final class DiskType implements Serializable {
35
+ public class DiskType implements Serializable {
36
36
37
37
static final Function <com .google .api .services .compute .model .DiskType , DiskType > FROM_PB_FUNCTION =
38
38
new Function <com .google .api .services .compute .model .DiskType , DiskType >() {
@@ -186,12 +186,12 @@ public String toString() {
186
186
}
187
187
188
188
@ Override
189
- public int hashCode () {
189
+ public final int hashCode () {
190
190
return Objects .hash (diskTypeId );
191
191
}
192
192
193
193
@ Override
194
- public boolean equals (Object obj ) {
194
+ public final boolean equals (Object obj ) {
195
195
return obj instanceof DiskType && Objects .equals (toPb (), ((DiskType ) obj ).toPb ());
196
196
}
197
197
Original file line number Diff line number Diff line change 29
29
*
30
30
* @see <a href="https://cloud.google.com/compute/docs/reference/latest/licenses">Licenses</a>
31
31
*/
32
- public final class License implements Serializable {
32
+ public class License implements Serializable {
33
33
34
34
private static final long serialVersionUID = 6907923910319640363L ;
35
35
@@ -65,12 +65,12 @@ public String toString() {
65
65
}
66
66
67
67
@ Override
68
- public int hashCode () {
68
+ public final int hashCode () {
69
69
return Objects .hash (licenseId );
70
70
}
71
71
72
72
@ Override
73
- public boolean equals (Object obj ) {
73
+ public final boolean equals (Object obj ) {
74
74
return obj instanceof License && Objects .equals (toPb (), ((License ) obj ).toPb ());
75
75
}
76
76
Original file line number Diff line number Diff line change 36
36
*
37
37
* @see <a href="https://cloud.google.com/compute/docs/machine-types">Machine Types</a>
38
38
*/
39
- public final class MachineType implements Serializable {
39
+ public class MachineType implements Serializable {
40
40
41
41
static final Function <com .google .api .services .compute .model .MachineType , MachineType >
42
42
FROM_PB_FUNCTION =
@@ -242,12 +242,12 @@ public String toString() {
242
242
}
243
243
244
244
@ Override
245
- public int hashCode () {
245
+ public final int hashCode () {
246
246
return Objects .hash (machineTypeId );
247
247
}
248
248
249
249
@ Override
250
- public boolean equals (Object obj ) {
250
+ public final boolean equals (Object obj ) {
251
251
return obj instanceof MachineType && Objects .equals (toPb (), ((MachineType ) obj ).toPb ());
252
252
}
253
253
Original file line number Diff line number Diff line change 34
34
*
35
35
* @see <a href="https://cloud.google.com/compute/docs/zones">Region and Zones</a>
36
36
*/
37
- public final class Region implements Serializable {
37
+ public class Region implements Serializable {
38
38
39
39
static final Function <com .google .api .services .compute .model .Region , Region > FROM_PB_FUNCTION =
40
40
new Function <com .google .api .services .compute .model .Region , Region >() {
@@ -306,12 +306,12 @@ public String toString() {
306
306
}
307
307
308
308
@ Override
309
- public int hashCode () {
309
+ public final int hashCode () {
310
310
return Objects .hash (regionId );
311
311
}
312
312
313
313
@ Override
314
- public boolean equals (Object obj ) {
314
+ public final boolean equals (Object obj ) {
315
315
return obj instanceof Region && Objects .equals (toPb (), ((Region ) obj ).toPb ());
316
316
}
317
317
Original file line number Diff line number Diff line change 34
34
*
35
35
* @see <a href="https://cloud.google.com/compute/docs/zones">Region and Zones</a>
36
36
*/
37
- public final class Zone implements Serializable {
37
+ public class Zone implements Serializable {
38
38
39
39
static final Function <com .google .api .services .compute .model .Zone , Zone > FROM_PB_FUNCTION =
40
40
new Function <com .google .api .services .compute .model .Zone , Zone >() {
@@ -325,12 +325,12 @@ public String toString() {
325
325
}
326
326
327
327
@ Override
328
- public int hashCode () {
328
+ public final int hashCode () {
329
329
return Objects .hash (zoneId );
330
330
}
331
331
332
332
@ Override
333
- public boolean equals (Object obj ) {
333
+ public final boolean equals (Object obj ) {
334
334
return obj instanceof Zone && Objects .equals (toPb (), ((Zone ) obj ).toPb ());
335
335
}
336
336
You can’t perform that action at this time.
0 commit comments