public final class IdHelper extends Object
| Constructor and Description |
|---|
IdHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addParentId(List<? extends PersistentDto> dtos,
int parentId) |
static void |
addParentId(PersistentDto dto,
int parentId) |
static Set<Integer> |
extractIds(List<? extends PersistentDto> dtos) |
static Integer |
extractParentId(List<? extends PersistentDto> dtos) |
static <T> Set<T> |
findMissing(List<T> a,
List<T> b) |
static <T> Set<T> |
findMissing(Set<T> a,
Set<T> b) |
static boolean |
isValid(Integer id) |
public static final boolean isValid(Integer id)
public static final Set<Integer> extractIds(List<? extends PersistentDto> dtos)
public static final Integer extractParentId(List<? extends PersistentDto> dtos)
public static final void addParentId(List<? extends PersistentDto> dtos, int parentId)
public static final void addParentId(PersistentDto dto, int parentId)
Copyright © 2019. All rights reserved.