@@ -134,7 +134,7 @@ protected CloudFileShare getShareReference(final String shareName, String snapsh
134134 */
135135 @ DoesServiceRequest
136136 public Iterable <CloudFileShare > listShares () {
137- return this .listSharesWithPrefix (null , EnumSet . noneOf ( ShareListingDetails .class ) , null /* options */ , null /* opContext */ );
137+ return this .listSharesWithPrefix (null , ShareListingDetails .NONE , null /* options */ , null /* opContext */ );
138138 }
139139
140140 /**
@@ -149,7 +149,7 @@ public Iterable<CloudFileShare> listShares() {
149149 */
150150 @ DoesServiceRequest
151151 public Iterable <CloudFileShare > listShares (final String prefix ) {
152- return this .listSharesWithPrefix (prefix , EnumSet . noneOf ( ShareListingDetails .class ) , null /* options */ , null /* opContext */ );
152+ return this .listSharesWithPrefix (prefix , ShareListingDetails .NONE , null /* options */ , null /* opContext */ );
153153 }
154154
155155 /**
@@ -159,8 +159,7 @@ public Iterable<CloudFileShare> listShares(final String prefix) {
159159 * @param prefix
160160 * A <code>String</code> that represents the share name prefix.
161161 * @param detailsIncluded
162- * A <code>java.util.EnumSet</code> object that contains {@link ShareListingDetails} values that indicate
163- * whether share snapshots and/or metadata will be returned.
162+ * A {@link ShareListingDetails} value that indicates whether share metadata will be returned.
164163 * @param options
165164 * A {@link FileRequestOptions} object that specifies any additional options for the request. Specifying
166165 * <code>null</code> will use the default request options from the associated service client (
@@ -174,7 +173,7 @@ public Iterable<CloudFileShare> listShares(final String prefix) {
174173 * shares for this client.
175174 */
176175 @ DoesServiceRequest
177- public Iterable <CloudFileShare > listShares (final String prefix , final EnumSet < ShareListingDetails > detailsIncluded ,
176+ public Iterable <CloudFileShare > listShares (final String prefix , final ShareListingDetails detailsIncluded ,
178177 final FileRequestOptions options , final OperationContext opContext ) {
179178 return this .listSharesWithPrefix (prefix , detailsIncluded , options , opContext );
180179 }
@@ -190,7 +189,7 @@ public Iterable<CloudFileShare> listShares(final String prefix, final EnumSet<Sh
190189 */
191190 @ DoesServiceRequest
192191 public ResultSegment <CloudFileShare > listSharesSegmented () throws StorageException {
193- return this .listSharesSegmented (null , EnumSet . noneOf ( ShareListingDetails .class ) , null , null /* continuationToken */ ,
192+ return this .listSharesSegmented (null , ShareListingDetails .NONE , null , null /* continuationToken */ ,
194193 null /* options */ , null /* opContext */ );
195194 }
196195
@@ -210,7 +209,7 @@ public ResultSegment<CloudFileShare> listSharesSegmented() throws StorageExcepti
210209 */
211210 @ DoesServiceRequest
212211 public ResultSegment <CloudFileShare > listSharesSegmented (final String prefix ) throws StorageException {
213- return this .listSharesWithPrefixSegmented (prefix , EnumSet . noneOf ( ShareListingDetails .class ) , null , null /* continuationToken */ ,
212+ return this .listSharesWithPrefixSegmented (prefix , ShareListingDetails .NONE , null , null /* continuationToken */ ,
214213 null /* options */ , null /* opContext */ );
215214 }
216215
@@ -221,8 +220,7 @@ public ResultSegment<CloudFileShare> listSharesSegmented(final String prefix) th
221220 * @param prefix
222221 * A <code>String</code> that represents the prefix of the share name.
223222 * @param detailsIncluded
224- * A <code>java.util.EnumSet</code> object that contains {@link ShareListingDetails} values that indicate
225- * whether share snapshots and/or metadata will be returned.
223+ * A {@link ShareListingDetails} value that indicates whether share metadata will be returned.
226224 * @param maxResults
227225 * The maximum number of results to retrieve. If <code>null</code> or greater
228226 * than 5000, the server will return up to 5,000 items. Must be at least 1.
@@ -246,7 +244,7 @@ public ResultSegment<CloudFileShare> listSharesSegmented(final String prefix) th
246244 */
247245 @ DoesServiceRequest
248246 public ResultSegment <CloudFileShare > listSharesSegmented (final String prefix ,
249- final EnumSet < ShareListingDetails > detailsIncluded , final Integer maxResults ,
247+ final ShareListingDetails detailsIncluded , final Integer maxResults ,
250248 final ResultContinuation continuationToken , final FileRequestOptions options ,
251249 final OperationContext opContext ) throws StorageException {
252250 return this .listSharesWithPrefixSegmented (prefix , detailsIncluded , maxResults , continuationToken , options ,
@@ -260,8 +258,7 @@ public ResultSegment<CloudFileShare> listSharesSegmented(final String prefix,
260258 * @param prefix
261259 * A <code>String</code> that represents the prefix of the share name.
262260 * @param detailsIncluded
263- * A <code>java.util.EnumSet</code> object that contains {@link ShareListingDetails}
264- * values that indicate whether snapshots and/or metadata are returned.
261+ * A {@link ShareListingDetails} value that indicates whether share metadata will be returned.
265262 * @param options
266263 * A {@link FileRequestOptions} object that specifies any additional options for the request. Specifying
267264 * <code>null</code> will use the default request options from the associated service client (
@@ -275,7 +272,7 @@ public ResultSegment<CloudFileShare> listSharesSegmented(final String prefix,
275272 * shares whose names begin with the specified prefix.
276273 */
277274 private Iterable <CloudFileShare > listSharesWithPrefix (final String prefix ,
278- final EnumSet < ShareListingDetails > detailsIncluded , FileRequestOptions options , OperationContext opContext ) {
275+ final ShareListingDetails detailsIncluded , FileRequestOptions options , OperationContext opContext ) {
279276 if (opContext == null ) {
280277 opContext = new OperationContext ();
281278 }
@@ -297,8 +294,7 @@ private Iterable<CloudFileShare> listSharesWithPrefix(final String prefix,
297294 * @param prefix
298295 * A <code>String</code> that represents the prefix of the share name.
299296 * @param detailsIncluded
300- * A <code>java.util.EnumSet</code> object that contains {@link ShareListingDetails} values that indicate
301- * whether share snapshots and/or metadata will be returned.
297+ * A {@link ShareListingDetails} value that indicates whether share metadata will be returned.
302298 * @param maxResults
303299 * The maximum number of results to retrieve. If <code>null</code> or greater
304300 * than 5000, the server will return up to 5,000 items. Must be at least 1.
@@ -321,7 +317,7 @@ private Iterable<CloudFileShare> listSharesWithPrefix(final String prefix,
321317 * If a storage service error occurred.
322318 */
323319 private ResultSegment <CloudFileShare > listSharesWithPrefixSegmented (final String prefix ,
324- final EnumSet < ShareListingDetails > detailsIncluded , final Integer maxResults ,
320+ final ShareListingDetails detailsIncluded , final Integer maxResults ,
325321 final ResultContinuation continuationToken , FileRequestOptions options , OperationContext opContext )
326322 throws StorageException {
327323 if (opContext == null ) {
@@ -342,7 +338,7 @@ private ResultSegment<CloudFileShare> listSharesWithPrefixSegmented(final String
342338 }
343339
344340 private StorageRequest <CloudFileClient , Void , ResultSegment <CloudFileShare >> listSharesWithPrefixSegmentedImpl (
345- final String prefix , final EnumSet < ShareListingDetails > detailsIncluded , final Integer maxResults ,
341+ final String prefix , final ShareListingDetails detailsIncluded , final Integer maxResults ,
346342 final FileRequestOptions options , final SegmentedStorageRequest segmentedRequest ) {
347343
348344 Utility .assertContinuationType (segmentedRequest .getToken (), ResultContinuationType .SHARE );
0 commit comments