public class Sets
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <E> java.util.Set<E> |
getIntersection(java.util.Set<E> set1,
java.util.Set<E> set2)
Returns the intersection of the two sets.
|
static boolean |
intersects(java.util.Set<?> set1,
java.util.Set<?> set2)
Returns
true if the given sets have non empty intersection. |
public static boolean intersects(java.util.Set<?> set1, java.util.Set<?> set2)
true
if the given sets have non empty intersection.set1
- set2
- true
if the given sets have non empty intersectionpublic static <E> java.util.Set<E> getIntersection(java.util.Set<E> set1, java.util.Set<E> set2)
E
- set1
- set2
- Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.