public class SetUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> Set<T> |
addIfNotEmpty(Set<T> set,
T element)
Add if not empty
|
static <T> Set<T> |
createIfNull(Set<T> set)
Create an HashSet if the Set is null;
|
static <T> List<T> |
toList(Set<T> set)
Return a list from a set
|
public static <T> List<T> toList(Set<T> set)
T - The Set typeset - The input setpublic static <T> Set<T> addIfNotEmpty(Set<T> set, T element)
T - The Set and element typeset - The input setelement - The element to addCopyright © 2018 Okkam srl. All rights reserved.