Interface EntityCollection<T extends Entity>
-
- Type Parameters:
T- the entity's type
- All Superinterfaces:
Collection<T>,Iterable<T>
- All Known Implementing Classes:
EntityList
public interface EntityCollection<T extends Entity> extends Collection<T>
Methods for entity collections on top of the standard set of collection methods.- Author:
- Nils Sommer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfetchNext()Use the nextLink to fetch more Entities.longgetCount()Get the count value if available.EntityTypegetType()booleanhasNextLink()voidsetCount(long count)Set the count value.List<T>toList()Convert the EntityCollection to aList.
-
-
-
Method Detail
-
getType
EntityType getType()
-
hasNextLink
boolean hasNextLink()
- Returns:
- true if there is a nextLink to fetch more Entities.
-
fetchNext
void fetchNext() throws ServiceFailureExceptionUse the nextLink to fetch more Entities.- Throws:
ServiceFailureException- If there is a problem following the nextLink.
-
getCount
long getCount()
Get the count value if available.- Returns:
- the count value
-
setCount
void setCount(long count)
Set the count value.- Parameters:
count- the count value
-
-