public class SetUtils extends Object
| Constructor and Description |
|---|
SetUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <X> Set<X> |
buildSet(X o)
Build a Set
|
static <X> double |
getMax(HashMap<X,Integer> nbOccurrence) |
static <X> Set<X> |
intersection(Collection<X> anc_setA,
Collection<X> anc_setB)
Compute the intersection of two collections
|
static <X> Set<X> |
union(Collection<X> a,
Collection<X> b)
Compute the union of two collections
|
public static <X> Set<X> union(Collection<X> a, Collection<X> b)
X - a - b - public static <X> Set<X> intersection(Collection<X> anc_setA, Collection<X> anc_setB)
X - anc_setA - anc_setB - public static <X> double getMax(HashMap<X,Integer> nbOccurrence)
X - nbOccurrence - public static <X> Set<X> buildSet(X o)
X - o - Copyright © 2014. All rights reserved.