public abstract class SetLib extends Object
Constructor and Description |
---|
SetLib() |
Modifier and Type | Method and Description |
---|---|
static <Item> void |
assertEquals(Set<Item> expected,
Set<Item> provided)
Assert that two sets are equal, identifying missing and unexpected items if they are not.
|
static <Item> Set<Item> |
union(Set<Item>... sets)
Return the union of a variable number of sets.
|
@SafeVarargs public static <Item> Set<Item> union(Set<Item>... sets)
sets
- Variable number of sets.public static <Item> void assertEquals(Set<Item> expected, Set<Item> provided) throws AssertionError
expected
- The expected items.provided
- The provided items.AssertionError
Copyright © 2014. All rights reserved.