public class TopiaEntities extends Object
TopiaEntity manipulation.| Constructor and Description |
|---|
TopiaEntities() |
| Modifier and Type | Method and Description |
|---|---|
static <E extends TopiaEntity> |
entityHasId(String id)
|
static <E extends TopiaEntity> |
findByTopiaId(Iterable<E> entities,
String id)
|
static <E extends TopiaEntity> |
getTopiaIdFunction()
Function to obtain
TopiaEntity.getTopiaId() from any entity. |
public static <E extends TopiaEntity> com.google.common.base.Predicate<E> entityHasId(String id)
E - type of entityid - the expected topiaIdpublic static <E extends TopiaEntity> E findByTopiaId(Iterable<E> entities, String id)
E - the type of TopiaEntity of the given Iterableentities - the Iterable instance to iterate throughid - the expected topiaIdTopiaEntity or nullpublic static <E extends TopiaEntity> com.google.common.base.Function<E,String> getTopiaIdFunction()
TopiaEntity.getTopiaId() from any entity.E - type of entityCopyright © 2004–2018 CodeLutin. All rights reserved.