Class EntitySetImpl
java.lang.Object
de.fraunhofer.iosb.ilt.frostclient.model.EntitySetImpl
Implementation of EntitySet interface.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEntitySetImpl(EntityType type) EntitySetImpl(NavigationPropertyEntitySet navigationProperty) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanvoidUse the nextLink to fetch more Entities.longgetCount()Get The total number of entities in the Set that exist on the server.Get the navigationProperty that manages this EntitySet.Get the nextLink, if it exists.inthashCode()booleanCheck if there is a nextLink.booleanisEmpty()Check if there are entities currently loaded in the set.iterator()Get an iterator that iterates over all entities, following nextLinks if needed.voidsetCount(long count) setNavigationProperty(NavigationPropertyEntitySet navigationProperty) voidsetNextLink(String nextLink) voidsetService(SensorThingsService service) Sets the service for the set and all Entities in the set.intsize()Get the number of currently loaded Entities in the Set.toList()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
data
-
count
protected long count -
nextLink
-
-
Constructor Details
-
EntitySetImpl
-
-
Method Details
-
toList
Description copied from interface:EntitySet -
size
public int size()Description copied from interface:EntitySetGet the number of currently loaded Entities in the Set. -
isEmpty
public boolean isEmpty()Description copied from interface:EntitySetCheck if there are entities currently loaded in the set. -
iterator
Description copied from interface:EntitySetGet an iterator that iterates over all entities, following nextLinks if needed. -
fetchNext
public void fetchNext()Description copied from interface:EntitySetUse the nextLink to fetch more Entities. -
add
-
hashCode
public int hashCode() -
equals
-
getCount
public long getCount()Description copied from interface:EntitySetGet The total number of entities in the Set that exist on the server. Returns -1 if the count is not loaded. -
setCount
public void setCount(long count) -
hasNextLink
public boolean hasNextLink()Description copied from interface:EntitySetCheck if there is a nextLink.- Specified by:
hasNextLinkin interfaceEntitySet- Returns:
- true if there is a nextLink to fetch more Entities.
-
getNextLink
Description copied from interface:EntitySetGet the nextLink, if it exists. NULL otherwise.- Specified by:
getNextLinkin interfaceEntitySet- Returns:
- the nextLink, if it exists.
-
setNextLink
- Specified by:
setNextLinkin interfaceEntitySet
-
getEntityType
- Specified by:
getEntityTypein interfaceEntitySet
-
setService
Description copied from interface:EntitySetSets the service for the set and all Entities in the set.- Specified by:
setServicein interfaceEntitySet- Parameters:
service- the service to set.
-