public final class Sets
extends Object
Set algebra operations are available in this class as static utility.

Most operations are non-destructive, i.e. no input sets are modified during execution. The exception is operations ending in "Into." These accept the target collection of the final calculation as the first parameter.

Some effort is made to return a SortedSet if any input set is sorted, but this is not guaranteed (e.g., this will not be the case for collections proxied by Hibernate). When in doubt, specify the target collection explicitly with the "Into" version. This class should be used to create instances of MutableSet, ImmutableSet and FixedSizeSet

Mutable Examples:

 MutableSet<String> emptySet = Sets.mutable.empty();
 MutableSet<String> setWith = Sets.mutable.with("a", "b", "c");
 MutableSet<String> setOf = Sets.mutable.of("a", "b", "c");
Immutable Examples:
 ImmutableSet<String> emptySet = Sets.immutable.empty();
 ImmutableSet<String> setWith = Sets.immutable.with("a", "b", "c");
 ImmutableSet<String> setOf = Sets.immutable.of("a", "b", "c");
FixedSize Examples:
 FixedSizeSet<String> emptySet = Sets.fixedSize.empty();
 FixedSizeSet<String> setWith = Sets.fixedSize.with("a", "b", "c");
 FixedSizeSet<String> setOf = Sets.fixedSize.of("a", "b", "c");