public abstract class SetTools
extends java.lang.Object
Constructor and Description |
---|
SetTools() |
Modifier and Type | Method and Description |
---|---|
static <T> boolean |
hasElementsInCommon(java.util.Set<T> set1,
java.util.Set<T> set2)
Returns true if there are elements in common between the two sets.
|
static <T> java.util.Set<T> |
intersection(java.util.Set<T> set1,
java.util.Set<T> set2)
Computes a new set with elements in common between set1 and set2.
|
public static <T> java.util.Set<T> intersection(java.util.Set<T> set1, java.util.Set<T> set2)
T
- the generic typeset1
- the set 1set2
- the set 2public static <T> boolean hasElementsInCommon(java.util.Set<T> set1, java.util.Set<T> set2)
T
- the generic typeset1
- the set 1set2
- the set 2Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa