public class MyLinkedHashSet
extends java.lang.Object
| Constructor and Description |
|---|
MyLinkedHashSet() |
| Modifier and Type | Method and Description |
|---|---|
static <E> java.util.LinkedHashSet<E> |
createSet(E... e)
Creates a LinkedHashSet from a given collection of objects
|
static <E> java.util.LinkedHashSet<E> |
validateDistinctAndCreateInOrderSet(E... e)
Creates a HashSet from a given collection of objects, if and only if the given collection contains no duplicates
|
@SafeVarargs public static <E> java.util.LinkedHashSet<E> createSet(E... e)
E - the element typee - a collection of objects to be collected in a LinkedHashSet@SafeVarargs
public static <E> java.util.LinkedHashSet<E> validateDistinctAndCreateInOrderSet(E... e)
throws DuplicateException
E - the element typee - a collection of objects to be collected in a HashSetDuplicateException - if a duplicate is contained in the given collection