List of all members.
Classes |
interface | Criteria< T extends Object > |
Static Public Member Functions |
static boolean | isDisjoined (Set<?> a, Set<?> b) |
Static Package Functions |
static public< A > Set< A > | add (Set< A > s, A a) |
static public< B, A > HashSet< A > | mapset (final Set< B > set, final MapFct< B, A > map) |
static public< T extends
Object > String | convertToString (Set< T > set) |
static public< T extends
Object > Set< T > | intersect (Set< T > a, Set< T > b, Set< T > c) |
static public< T extends
Object > Set< T > | union (Set< T > a, Set< T > b, Set< T > c) |
static public< T extends
Object > Set< T > | diff (Set< T > a, Set< T > b, Set< T > c) |
static public< T extends Object > T | getOneOf (Set< T > s) |
static public< T extends
Object > HashSet< T > | array2HashSet (T[] array) |
static public< T extends
Object > HashSet< T > | filter (Set< T > myset, Criteria< T > criteria) |
Private Member Functions |
| SetUtil () |
Detailed Description
Constructor & Destructor Documentation
metadone.util.SetUtil.SetUtil |
( |
| ) |
[private] |
Member Function Documentation
static public<A> Set<A> metadone.util.SetUtil.add |
( |
Set< A > |
s, |
|
|
A |
a |
|
) |
| [static, package] |
static public<T extends Object> HashSet<T> metadone.util.SetUtil.array2HashSet |
( |
T[] |
array | ) |
[static, package] |
static public<T extends Object> String metadone.util.SetUtil.convertToString |
( |
Set< T > |
set | ) |
[static, package] |
- Parameters:
-
- Returns:
- A string that denotes the argument.
static public<T extends Object> Set<T> metadone.util.SetUtil.diff |
( |
Set< T > |
a, |
|
|
Set< T > |
b, |
|
|
Set< T > |
c |
|
) |
| [static, package] |
Compute C as A
- Parameters:
-
<T> | |
a | not null |
b | not null |
c | if c is null, an hashset is created for the result. |
- Returns:
- c
static public<T extends Object> HashSet<T> metadone.util.SetUtil.filter |
( |
Set< T > |
myset, |
|
|
Criteria< T > |
criteria |
|
) |
| [static, package] |
static public<T extends Object> T metadone.util.SetUtil.getOneOf |
( |
Set< T > |
s | ) |
[static, package] |
static public<T extends Object> Set<T> metadone.util.SetUtil.intersect |
( |
Set< T > |
a, |
|
|
Set< T > |
b, |
|
|
Set< T > |
c |
|
) |
| [static, package] |
static boolean metadone.util.SetUtil.isDisjoined |
( |
Set<?> |
a, |
|
|
Set<?> |
b |
|
) |
| [static] |
static public<B, A> HashSet<A> metadone.util.SetUtil.mapset |
( |
final Set< B > |
set, |
|
|
final MapFct< B, A > |
map |
|
) |
| [static, package] |
Converts a set into another set by mapping every element with the map function.
- Parameters:
-
- Returns:
static public<T extends Object> Set<T> metadone.util.SetUtil.union |
( |
Set< T > |
a, |
|
|
Set< T > |
b, |
|
|
Set< T > |
c |
|
) |
| [static, package] |
The documentation for this class was generated from the following file: