ppt4j 1.0
 
Loading...
Searching...
No Matches
ppt4j.util.SetUtils Class Reference

Static Public Member Functions

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)
 

Member Function Documentation

◆ 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
set1the first set
set2the 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
set1the first Set of elements
set2the 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
set1the first set
set2the 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: