T - type of entitypublic final class Ids<T extends io.jmix.core.Entity,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 io.jmix.core.Entity,K> |
getValues(java.util.List<Id<T,K>> ids)
Extract ids of entities from
List<Id<T, K>>. |
static <T extends io.jmix.core.Entity,K> |
of(java.lang.Class<T> entityClass,
java.util.Collection<K> values) |
static <T extends io.jmix.core.Entity,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, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizepublic static <T extends io.jmix.core.Entity,K> Ids<T,K> of(java.util.Collection<T> entities)
K - type of entity keyT - entity typeentities - entity instancespublic static <T extends io.jmix.core.Entity,K> Ids<T,K> of(java.lang.Class<T> entityClass, java.util.Collection<K> values)
T - entity typeentityClass - entity classvalues - id valuespublic java.util.List<K> getValues()
List<Id<T, K>>.public static <T extends io.jmix.core.Entity,K> java.util.List<K> getValues(java.util.List<Id<T,K>> ids)
List<Id<T, K>>.T - type of entityids - list of ids