Class 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 of ECPElements.
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 of ECPElements.
        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 elements
        newElements - 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 elements
        newElements - the collection containing the new elements
        Returns:
        the Set of elements which are only in the oldElements collection