Package io.datarouter.model.entity
Class EntityTool
java.lang.Object
io.datarouter.model.entity.EntityTool
public class EntityTool
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description EntityTool() -
Method Summary
Modifier and Type Method Description static <EK extends EntityKey<EK>, E extends Entity<EK>>
java.util.Map<EK,E>getByKey(java.util.Collection<E> entities)static <EK extends EntityKey<EK>, PK extends EntityPrimaryKey<EK, PK>, D extends Databean<PK, D>>
java.util.NavigableMap<EK,java.util.List<D>>getDatabeansByEntityKey(java.lang.Iterable<D> databeans)static <EK extends EntityKey<EK>, PK extends EntityPrimaryKey<EK, PK>>
java.util.NavigableMap<EK,java.util.List<PK>>getPrimaryKeysByEntityKey(java.lang.Iterable<PK> pks)
-
Constructor Details
-
EntityTool
public EntityTool()
-
-
Method Details
-
getByKey
-
getPrimaryKeysByEntityKey
public static <EK extends EntityKey<EK>, PK extends EntityPrimaryKey<EK, PK>> java.util.NavigableMap<EK,java.util.List<PK>> getPrimaryKeysByEntityKey(java.lang.Iterable<PK> pks) -
getDatabeansByEntityKey
public static <EK extends EntityKey<EK>, PK extends EntityPrimaryKey<EK, PK>, D extends Databean<PK, D>> java.util.NavigableMap<EK,java.util.List<D>> getDatabeansByEntityKey(java.lang.Iterable<D> databeans)
-