public class ODataQueryResult extends ODataHttpResponseWrapper implements Iterable<ResultElement>
Constructor and Description |
---|
ODataQueryResult(ResultElement resultElement,
org.apache.http.HttpResponse httpResponse) |
Modifier and Type | Method and Description |
---|---|
<T> T |
as(Class<T> objectType) |
<T> List<T> |
asList(Class<T> objectType) |
CollectedResultCollection |
collect(String elementName) |
boolean |
equals(Object o) |
com.google.common.base.Optional<ResultElement> |
getIfPresent(String elementName) |
ODataQuery |
getQuery() |
ResultElement |
getResultElement() |
com.google.common.base.Optional<ResultElement> |
getResultElement(String elementName) |
Iterable<ResultElement> |
getResultElements() |
int |
hashCode() |
Iterator<ResultElement> |
iterator() |
void |
setQuery(ODataQuery query) |
void |
setResultElement(ResultElement resultElement) |
String |
toString() |
getHttpStatusCode, setResponse
public ODataQueryResult(ResultElement resultElement, org.apache.http.HttpResponse httpResponse)
public CollectedResultCollection collect(String elementName)
public com.google.common.base.Optional<ResultElement> getIfPresent(String elementName) throws IllegalArgumentException
IllegalArgumentException
public <T> List<T> asList(Class<T> objectType) throws IllegalArgumentException
IllegalArgumentException
public <T> T as(Class<T> objectType) throws IllegalArgumentException
IllegalArgumentException
public Iterable<ResultElement> getResultElements()
public com.google.common.base.Optional<ResultElement> getResultElement(String elementName) throws IllegalArgumentException
IllegalArgumentException
public Iterator<ResultElement> iterator()
iterator
in interface Iterable<ResultElement>
@Generated(value="lombok") public ResultElement getResultElement()
@Generated(value="lombok") public void setResultElement(ResultElement resultElement)
@Generated(value="lombok") public boolean equals(Object o)
@Generated(value="lombok") public int hashCode()
@Generated(value="lombok") public String toString()
@Generated(value="lombok") public ODataQuery getQuery()
@Generated(value="lombok") public void setQuery(ODataQuery query)
Copyright © 2017 SAP SE. All rights reserved.