public class TopiaEntities extends Object
TopiaEntity manipulation.| Modifier and Type | Field and Description |
|---|---|
protected static com.google.common.base.Function<TopiaEntity,String> |
GET_TOPIA_ID
Guava's
Function to get a topiaId from any
TopiaEntity |
| Constructor and Description |
|---|
TopiaEntities() |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.base.Predicate<TopiaEntity> |
entityHasId(String id)
|
static <E extends TopiaEntity> |
findByTopiaId(Iterable<E> entities,
String id)
|
static com.google.common.base.Function<TopiaEntity,String> |
getTopiaIdFunction()
Function to obtain
TopiaEntity.getTopiaId() from any entity. |
protected static final com.google.common.base.Function<TopiaEntity,String> GET_TOPIA_ID
Function to get a topiaId from any
TopiaEntitypublic static com.google.common.base.Predicate<TopiaEntity> entityHasId(String id)
id - 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 com.google.common.base.Function<TopiaEntity,String> getTopiaIdFunction()
TopiaEntity.getTopiaId() from any entity.Copyright © 2004–2014 CodeLutin. All rights reserved.