public final class InternalUtil extends Object
Modifier and Type | Method and Description |
---|---|
static <E> Set<E> |
getAddedElements(Collection<E> oldElements,
Collection<E> newElements)
Finds the set of all Elements that are in the new collection but not in the old.
|
static Set<String> |
getElementNames(Set<? extends ECPElement> elements)
Returns the Set of names of a set of
ECPElements . |
static <E> Set<E> |
getRemovedElements(Collection<E> oldElements,
Collection<E> newElements)
Finds the set of all Elements that are in the old collection but not in the new.
|
public static Set<String> getElementNames(Set<? extends ECPElement> elements)
ECPElements
.elements
- the set of elements to get the names forpublic static <E> Set<E> getAddedElements(Collection<E> oldElements, Collection<E> newElements)
E
- the type of the elementsoldElements
- the collection containing the old elementsnewElements
- the collection containing the new elementspublic static <E> Set<E> getRemovedElements(Collection<E> oldElements, Collection<E> newElements)
E
- the type of the elementsoldElements
- the collection containing the old elementsnewElements
- the collection containing the new elementsCopyright © 2016. All rights reserved.