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