public class BfSets extends Object
| Constructor and Description |
|---|
BfSets() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Set<T> |
assoc(Set<T> set,
T... vals)
Add the values specified to the set.
|
static <T> Set<T> |
dissoc(Set<T> set,
T... vals)
Remove the values specified from the set.
|
static <T> Set<T> |
intersection(Set<T>... sets)
Create a set that is the intersection of a number of other sets.
|
static <T> Set<T> |
not(Set<T> set,
Set<T>... removals)
Create a set that is the given set minus any of the elements specified.
|
static <T> Set<T> |
set(T... values)
Create a set with the values specified
|
static <T> Set<T> |
union(Set<T>... sets)
Create a set that is the union of a number of other sets.
|
static <T> Set<T> |
xor(Set<T>... sets)
Create a set with the elements that are unique in each of the sets given.
|
public static <T> Set<T> set(T... values)
values - the values to use.public static <T> Set<T> assoc(Set<T> set, T... vals)
set - the set to start with.vals - the values to add.public static <T> Set<T> dissoc(Set<T> set, T... vals)
set - The set to remove values fromvals - The values to removepublic static <T> Set<T> union(Set<T>... sets)
sets - The sets to union.public static <T> Set<T> intersection(Set<T>... sets)
sets - The sets to intersect.public static <T> Set<T> xor(Set<T>... sets)
sets - The sets to look for unique elementspublic static <T> Set<T> not(Set<T> set, Set<T>... removals)
set - the set to start fromremovals - the elements to remove from the set.Copyright © 2016. All rights reserved.