public interface EntityMaps extends Iterable<EntityMap>
EntityMaps
object contains a number of EntityMap
objects and can be used to represent the changes in an EntityMap over time
or to track the entities of a graph over some other metric.Modifier and Type | Method and Description |
---|---|
default void |
add(EntityMap entityMap)
Add a new
EntityMap . |
List<EntityMap> |
asList()
Get a representation of the current EntityMaps object as a
List . |
default boolean |
empty()
Return
true if this EntityMaps object is empty, otherwise false . |
default EntityMap |
get(int n)
Retrieve the nth
EntityMap . |
default Iterator<EntityMap> |
iterator() |
default String |
prettyPrint()
Print the
EntityMap object in an easily readable format. |
default int |
size()
Return the number of
EntityMap present in the entityMaps object. |
forEach, spliterator
default void add(EntityMap entityMap)
EntityMap
.entityMap
- the entityMap to adddefault EntityMap get(int n)
EntityMap
.n
- the index of the adjacency map to retrievedefault int size()
EntityMap
present in the entityMaps object.
Depending on the context, this could refer to the number of hops present, or the number of timesteps etc.
default boolean empty()
true
if this EntityMaps object is empty, otherwise false
.default String prettyPrint()
EntityMap
object in an easily readable format.String
representation of the entityMap
object.List<EntityMap> asList()
List
.List
representation of the current entityMaps objectCopyright © 2022. All rights reserved.