public final class EntityUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <T extends EntityId,E extends Entity<T,?>> |
mapEntitiesById(List<? extends E> entities)
Maps the given entities by their ids.
|
static com.google.common.collect.ImmutableMap<WorkObjectId,WorkObject<?,?,?>> |
mapWorkObjectsById(List<? extends WorkObject<?,?,?>> workObjects)
Maps the given work objects by their work object ids.
|
static <T extends EntityId,E extends Entity<T,?>> |
transformEntitiesToIds(List<? extends E> entities)
Returns a list of the ids of the given entities.
|
static com.google.common.collect.ImmutableList<WorkObjectId> |
transformWorkObjectsToIds(List<? extends WorkObject<?,?,?>> workObjects)
Returns a list of the work object ids of the given work objects.
|
public static <T extends EntityId,E extends Entity<T,?>> com.google.common.collect.ImmutableList<T> transformEntitiesToIds(List<? extends E> entities)
T
- the type of the entity idE
- the type of the enttiyentities
- the entities to processpublic static com.google.common.collect.ImmutableList<WorkObjectId> transformWorkObjectsToIds(List<? extends WorkObject<?,?,?>> workObjects)
workObjects
- the work objects to processpublic static <T extends EntityId,E extends Entity<T,?>> com.google.common.collect.ImmutableMap<T,E> mapEntitiesById(List<? extends E> entities)
T
- the type of the entity idE
- the type of the enttiyentities
- the entities to mappublic static com.google.common.collect.ImmutableMap<WorkObjectId,WorkObject<?,?,?>> mapWorkObjectsById(List<? extends WorkObject<?,?,?>> workObjects)
workObjects
- the work objects to mapCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.