TResponse
- The type of response stored in the list.public final class ServiceResponseCollection<TResponse extends ServiceResponse> extends Object implements Iterable<TResponse>
Constructor and Description |
---|
ServiceResponseCollection()
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
add(TResponse response)
Adds specified response.
|
int |
getCount()
Gets the total number of response in the list.
|
Enumeration<TResponse> |
getEnumerator()
Gets the enumerator.
|
ServiceResult |
getOverallResult()
Gets a value indicating the overall result of the request that
generated this response collection.
|
TResponse |
getResponseAtIndex(int index)
Gets the response at the specified index.
|
Iterator<TResponse> |
iterator()
Returns an iterator over a set of elements of type T.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public ServiceResponseCollection()
public void add(TResponse response)
response
- The response.public int getCount()
public TResponse getResponseAtIndex(int index) throws IndexOutOfBoundsException
index
- The zero-based index of the response to get.IndexOutOfBoundsException
- the index out of bounds exceptionpublic ServiceResult getOverallResult()
public Iterator<TResponse> iterator()
iterator
in interface Iterable<TResponse extends ServiceResponse>
public Enumeration<TResponse> getEnumerator()
Copyright © 2012–2015 Microsoft. All rights reserved.