|
static< T > Set< T > | intersection (Set< T > set1, Set< T > set2) |
|
static< T > Set< T > | union (Set< T > set1, Set< T > set2) |
|
static< T > Set< T > | difference (Set< T > set1, Set< T > set2) |
|
◆ difference()
static< T > Set< T > ppt4j.util.SetUtils.difference |
( |
Set< T > | set1, |
|
|
Set< T > | set2 ) |
|
static |
Returns a new Set containing the elements that are present in set1 but not in set2.
- Parameters
-
<T> | the type of elements in the sets |
set1 | the first set |
set2 | the second set |
- Returns
- a Set containing the elements that are in set1 but not in set2
◆ intersection()
static< T > Set< T > ppt4j.util.SetUtils.intersection |
( |
Set< T > | set1, |
|
|
Set< T > | set2 ) |
|
static |
Returns a new Set containing the intersection of the elements in the two input Sets. The intersection of two sets is the set of elements that are common to both sets.
- Parameters
-
<T> | the type of elements in the Sets |
set1 | the first Set of elements |
set2 | the second Set of elements |
- Returns
- a new Set containing the intersection of elements from set1 and set2
◆ union()
static< T > Set< T > ppt4j.util.SetUtils.union |
( |
Set< T > | set1, |
|
|
Set< T > | set2 ) |
|
static |
Returns the union of two sets, which is a set containing all the distinct elements from both input sets.
- Parameters
-
<T> | the type of elements in the sets |
set1 | the first set |
set2 | the second set |
- Returns
- a set containing all the distinct elements from both input sets
The documentation for this class was generated from the following file: