1818
1919import com .google .common .collect .ImmutableList ;
2020import com .google .gcloud .FieldSelector ;
21- import com .google .gcloud .FieldSelector .SelectorHelper ;
21+ import com .google .gcloud .FieldSelector .Helper ;
2222import com .google .gcloud .Page ;
2323import com .google .gcloud .Service ;
2424import com .google .gcloud .dns .spi .DnsRpc ;
@@ -45,7 +45,7 @@ enum ProjectField implements FieldSelector {
4545 PROJECT_NUMBER ("number" ),
4646 QUOTA ("quota" );
4747
48- static final List <FieldSelector > REQUIRED_FIELDS = ImmutableList .< FieldSelector > of (PROJECT_ID );
48+ static final List <? extends FieldSelector > REQUIRED_FIELDS = ImmutableList .of (PROJECT_ID );
4949
5050 private final String selector ;
5151
@@ -75,7 +75,7 @@ enum ZoneField implements FieldSelector {
7575 NAME_SERVER_SET ("nameServerSet" ),
7676 NAME_SERVERS ("nameServers" );
7777
78- static final List <FieldSelector > REQUIRED_FIELDS = ImmutableList .< FieldSelector > of (NAME );
78+ static final List <? extends FieldSelector > REQUIRED_FIELDS = ImmutableList .of (NAME );
7979
8080 private final String selector ;
8181
@@ -102,7 +102,7 @@ enum RecordSetField implements FieldSelector {
102102 TTL ("ttl" ),
103103 TYPE ("type" );
104104
105- static final List <FieldSelector > REQUIRED_FIELDS = ImmutableList .< FieldSelector > of (NAME , TYPE );
105+ static final List <? extends FieldSelector > REQUIRED_FIELDS = ImmutableList .of (NAME , TYPE );
106106
107107 private final String selector ;
108108
@@ -120,8 +120,8 @@ public String selector() {
120120 * The fields of a change request.
121121 *
122122 * <p>These values can be used to specify the fields to include in a partial response when calling
123- * {@link Dns#applyChangeRequest(String, ChangeRequestInfo, ChangeRequestOption...)} The ID is always
124- * returned even if not selected.
123+ * {@link Dns#applyChangeRequest(String, ChangeRequestInfo, ChangeRequestOption...)} The ID is
124+ * always returned even if not selected.
125125 */
126126 enum ChangeRequestField implements FieldSelector {
127127 ID ("id" ),
@@ -130,7 +130,7 @@ enum ChangeRequestField implements FieldSelector {
130130 ADDITIONS ("additions" ),
131131 DELETIONS ("deletions" );
132132
133- static final List <FieldSelector > REQUIRED_FIELDS = ImmutableList .< FieldSelector > of (ID );
133+ static final List <? extends FieldSelector > REQUIRED_FIELDS = ImmutableList .of (ID );
134134
135135 private final String selector ;
136136
@@ -158,7 +158,7 @@ public String selector() {
158158 /**
159159 * Class for specifying record set listing options.
160160 */
161- class RecordSetListOption extends Option implements Serializable {
161+ class RecordSetListOption extends Option {
162162
163163 private static final long serialVersionUID = 1009627025381096098L ;
164164
@@ -176,7 +176,7 @@ class RecordSetListOption extends Option implements Serializable {
176176 */
177177 public static RecordSetListOption fields (RecordSetField ... fields ) {
178178 return new RecordSetListOption (DnsRpc .Option .FIELDS ,
179- SelectorHelper . selector ("rrsets" , RecordSetField .REQUIRED_FIELDS , fields ));
179+ Helper . listSelector ("rrsets" , RecordSetField .REQUIRED_FIELDS , fields ));
180180 }
181181
182182 /**
@@ -218,7 +218,7 @@ public static RecordSetListOption type(RecordSet.Type type) {
218218 /**
219219 * Class for specifying zone field options.
220220 */
221- class ZoneOption extends Option implements Serializable {
221+ class ZoneOption extends Option {
222222
223223 private static final long serialVersionUID = -8065564464895945037L ;
224224
@@ -235,14 +235,14 @@ class ZoneOption extends Option implements Serializable {
235235 */
236236 public static ZoneOption fields (ZoneField ... fields ) {
237237 return new ZoneOption (DnsRpc .Option .FIELDS ,
238- SelectorHelper .selector (ZoneField .REQUIRED_FIELDS , fields ));
238+ Helper .selector (ZoneField .REQUIRED_FIELDS , fields ));
239239 }
240240 }
241241
242242 /**
243243 * Class for specifying zone listing options.
244244 */
245- class ZoneListOption extends Option implements Serializable {
245+ class ZoneListOption extends Option {
246246
247247 private static final long serialVersionUID = -2830645032124504717L ;
248248
@@ -259,7 +259,7 @@ class ZoneListOption extends Option implements Serializable {
259259 */
260260 public static ZoneListOption fields (ZoneField ... fields ) {
261261 return new ZoneListOption (DnsRpc .Option .FIELDS ,
262- SelectorHelper . selector ("managedZones" , ZoneField .REQUIRED_FIELDS , fields ));
262+ Helper . listSelector ("managedZones" , ZoneField .REQUIRED_FIELDS , fields ));
263263 }
264264
265265 /**
@@ -293,7 +293,7 @@ public static ZoneListOption pageSize(int pageSize) {
293293 /**
294294 * Class for specifying project options.
295295 */
296- class ProjectOption extends Option implements Serializable {
296+ class ProjectOption extends Option {
297297
298298 private static final long serialVersionUID = 6817937338218847748L ;
299299
@@ -311,14 +311,14 @@ class ProjectOption extends Option implements Serializable {
311311 */
312312 public static ProjectOption fields (ProjectField ... fields ) {
313313 return new ProjectOption (DnsRpc .Option .FIELDS ,
314- SelectorHelper .selector (ProjectField .REQUIRED_FIELDS , fields ));
314+ Helper .selector (ProjectField .REQUIRED_FIELDS , fields ));
315315 }
316316 }
317317
318318 /**
319319 * Class for specifying change request field options.
320320 */
321- class ChangeRequestOption extends Option implements Serializable {
321+ class ChangeRequestOption extends Option {
322322
323323 private static final long serialVersionUID = 1067273695061077782L ;
324324
@@ -337,14 +337,14 @@ class ChangeRequestOption extends Option implements Serializable {
337337 */
338338 public static ChangeRequestOption fields (ChangeRequestField ... fields ) {
339339 return new ChangeRequestOption (DnsRpc .Option .FIELDS ,
340- SelectorHelper .selector (ChangeRequestField .REQUIRED_FIELDS , fields ));
340+ Helper .selector (ChangeRequestField .REQUIRED_FIELDS , fields ));
341341 }
342342 }
343343
344344 /**
345345 * Class for specifying change request listing options.
346346 */
347- class ChangeRequestListOption extends Option implements Serializable {
347+ class ChangeRequestListOption extends Option {
348348
349349 private static final long serialVersionUID = -900209143895376089L ;
350350
@@ -363,7 +363,7 @@ class ChangeRequestListOption extends Option implements Serializable {
363363 */
364364 public static ChangeRequestListOption fields (ChangeRequestField ... fields ) {
365365 return new ChangeRequestListOption (DnsRpc .Option .FIELDS ,
366- SelectorHelper . selector ("changes" , ChangeRequestField .REQUIRED_FIELDS , fields ));
366+ Helper . listSelector ("changes" , ChangeRequestField .REQUIRED_FIELDS , fields ));
367367 }
368368
369369 /**
0 commit comments