Class InternalUtil
- java.lang.Object
-
- org.eclipse.emf.ecp.internal.core.util.InternalUtil
-
public final class InternalUtil extends java.lang.Object
- Author:
- Eugen Neufeld
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <E> java.util.Set<E>
getAddedElements(java.util.Collection<E> oldElements, java.util.Collection<E> newElements)
Finds the set of all Elements that are in the new collection but not in the old.static java.util.Set<java.lang.String>
getElementNames(java.util.Set<? extends ECPElement> elements)
Returns the Set of names of a set ofECPElements
.static <E> java.util.Set<E>
getRemovedElements(java.util.Collection<E> oldElements, java.util.Collection<E> newElements)
Finds the set of all Elements that are in the old collection but not in the new.
-
-
-
Method Detail
-
getElementNames
public static java.util.Set<java.lang.String> getElementNames(java.util.Set<? extends ECPElement> elements)
Returns the Set of names of a set ofECPElements
.- Parameters:
elements
- the set of elements to get the names for- Returns:
- the set of names of this elements
-
getAddedElements
public static <E> java.util.Set<E> getAddedElements(java.util.Collection<E> oldElements, java.util.Collection<E> newElements)
Finds the set of all Elements that are in the new collection but not in the old.- Type Parameters:
E
- the type of the elements- Parameters:
oldElements
- the collection containing the old elementsnewElements
- the collection containing the new elements- Returns:
- the Set
of elements which are only in the newElements collection
-
getRemovedElements
public static <E> java.util.Set<E> getRemovedElements(java.util.Collection<E> oldElements, java.util.Collection<E> newElements)
Finds the set of all Elements that are in the old collection but not in the new.- Type Parameters:
E
- the type of the elements- Parameters:
oldElements
- the collection containing the old elementsnewElements
- the collection containing the new elements- Returns:
- the Set
of elements which are only in the oldElements collection
-
-