Class SetUtil



  • public class SetUtil
    extends Object
    • Constructor Detail

      • SetUtil

        public SetUtil()
    • Method Detail

      • intersection

        public static <T> Set<T> intersection(Set<T> set1,
                                              Set<T> set2)
        Compute the intersection of sets set1 and set2.
        Returns:
        all elements contained in the intersection of both sets