T
- type of entityK
- type entity keypublic final class Ids<T extends Entity<K>,K> extends java.util.ArrayList<Id<T,K>>
Id
Constructor and Description |
---|
Ids() |
Modifier and Type | Method and Description |
---|---|
java.util.List<K> |
getValues()
Extract ids of entities from
List<Id<T, K>> . |
static <T extends Entity<K>,K> |
getValues(java.util.List<Id<T,K>> ids)
Extract ids of entities from
List<Id<T, K>> . |
static <T extends Entity<K>,K> |
of(java.lang.Class<T> entityClass,
java.util.Collection<K> values) |
static <T extends Entity<K>,K> |
of(java.util.Collection<T> entities) |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
public static <T extends Entity<K>,K> Ids<T,K> of(java.util.Collection<T> entities)
K
- type of entity keyT
- entity typeentities
- entity instancespublic static <T extends Entity<K>,K> Ids<T,K> of(java.lang.Class<T> entityClass, java.util.Collection<K> values)
K
- type of entity keyT
- entity typeentityClass
- entity classvalues
- id valuespublic java.util.List<K> getValues()
List<Id<T, K>>
.