public final class SetIterables extends Object
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.
| Modifier and Type | Method and Description |
|---|---|
static <A,B> org.eclipse.collections.api.LazyIterable<org.eclipse.collections.api.tuple.Pair<A,B>> |
cartesianProduct(org.eclipse.collections.api.set.SetIterable<A> set1,
org.eclipse.collections.api.set.SetIterable<B> set2) |
static <E> org.eclipse.collections.api.set.MutableSet<E> |
difference(org.eclipse.collections.api.set.SetIterable<? extends E> minuendSet,
org.eclipse.collections.api.set.SetIterable<? extends E> subtrahendSet) |
static <E,R extends Set<E>> |
differenceInto(org.eclipse.collections.api.set.SetIterable<? extends E> minuendSet,
org.eclipse.collections.api.set.SetIterable<? extends E> subtrahendSet,
R targetSet) |
static <T> org.eclipse.collections.api.set.ImmutableSet<org.eclipse.collections.api.set.ImmutableSet<T>> |
immutablePowerSet(Set<T> set)
Returns an Immutable version of powerset where the inner sets are also immutable.
|
static <E> org.eclipse.collections.api.set.MutableSet<E> |
intersect(org.eclipse.collections.api.set.SetIterable<? extends E> setA,
org.eclipse.collections.api.set.SetIterable<? extends E> setB) |
static <E,R extends Set<E>> |
intersectInto(org.eclipse.collections.api.set.SetIterable<? extends E> setA,
org.eclipse.collections.api.set.SetIterable<? extends E> setB,
R targetSet) |
static <E> boolean |
isProperSubsetOf(org.eclipse.collections.api.set.SetIterable<? extends E> candidateSubset,
org.eclipse.collections.api.set.SetIterable<? extends E> candidateSuperset) |
static <E> boolean |
isSubsetOf(org.eclipse.collections.api.set.SetIterable<? extends E> candidateSubset,
org.eclipse.collections.api.set.SetIterable<? extends E> candidateSuperset) |
static <T> org.eclipse.collections.api.set.MutableSet<org.eclipse.collections.api.set.MutableSet<T>> |
powerSet(Set<T> set) |
static <T> org.eclipse.collections.api.set.MutableSet<org.eclipse.collections.api.set.MutableSet<T>> |
powerSet(UnifiedSetWithHashingStrategy<T> set) |
static <E> org.eclipse.collections.api.set.MutableSet<E> |
symmetricDifference(org.eclipse.collections.api.set.SetIterable<? extends E> setA,
org.eclipse.collections.api.set.SetIterable<? extends E> setB) |
static <E,R extends Set<E>> |
symmetricDifferenceInto(org.eclipse.collections.api.set.SetIterable<? extends E> setA,
org.eclipse.collections.api.set.SetIterable<? extends E> setB,
R targetSet) |
static <E> org.eclipse.collections.api.set.MutableSet<E> |
union(org.eclipse.collections.api.set.SetIterable<? extends E> setA,
org.eclipse.collections.api.set.SetIterable<? extends E> setB) |
static <E,R extends Set<E>> |
unionInto(org.eclipse.collections.api.set.SetIterable<? extends E> setA,
org.eclipse.collections.api.set.SetIterable<? extends E> setB,
R targetSet) |
public static <E> org.eclipse.collections.api.set.MutableSet<E> union(org.eclipse.collections.api.set.SetIterable<? extends E> setA,
org.eclipse.collections.api.set.SetIterable<? extends E> setB)
public static <E,R extends Set<E>> R unionInto(org.eclipse.collections.api.set.SetIterable<? extends E> setA, org.eclipse.collections.api.set.SetIterable<? extends E> setB, R targetSet)
public static <E> org.eclipse.collections.api.set.MutableSet<E> intersect(org.eclipse.collections.api.set.SetIterable<? extends E> setA,
org.eclipse.collections.api.set.SetIterable<? extends E> setB)
public static <E,R extends Set<E>> R intersectInto(org.eclipse.collections.api.set.SetIterable<? extends E> setA, org.eclipse.collections.api.set.SetIterable<? extends E> setB, R targetSet)
public static <E> org.eclipse.collections.api.set.MutableSet<E> difference(org.eclipse.collections.api.set.SetIterable<? extends E> minuendSet,
org.eclipse.collections.api.set.SetIterable<? extends E> subtrahendSet)
public static <E,R extends Set<E>> R differenceInto(org.eclipse.collections.api.set.SetIterable<? extends E> minuendSet, org.eclipse.collections.api.set.SetIterable<? extends E> subtrahendSet, R targetSet)
public static <E> org.eclipse.collections.api.set.MutableSet<E> symmetricDifference(org.eclipse.collections.api.set.SetIterable<? extends E> setA,
org.eclipse.collections.api.set.SetIterable<? extends E> setB)
public static <E,R extends Set<E>> R symmetricDifferenceInto(org.eclipse.collections.api.set.SetIterable<? extends E> setA, org.eclipse.collections.api.set.SetIterable<? extends E> setB, R targetSet)
public static <E> boolean isSubsetOf(org.eclipse.collections.api.set.SetIterable<? extends E> candidateSubset,
org.eclipse.collections.api.set.SetIterable<? extends E> candidateSuperset)
public static <E> boolean isProperSubsetOf(org.eclipse.collections.api.set.SetIterable<? extends E> candidateSubset,
org.eclipse.collections.api.set.SetIterable<? extends E> candidateSuperset)
public static <T> org.eclipse.collections.api.set.MutableSet<org.eclipse.collections.api.set.MutableSet<T>> powerSet(Set<T> set)
public static <T> org.eclipse.collections.api.set.MutableSet<org.eclipse.collections.api.set.MutableSet<T>> powerSet(UnifiedSetWithHashingStrategy<T> set)
public static <T> org.eclipse.collections.api.set.ImmutableSet<org.eclipse.collections.api.set.ImmutableSet<T>> immutablePowerSet(Set<T> set)
public static <A,B> org.eclipse.collections.api.LazyIterable<org.eclipse.collections.api.tuple.Pair<A,B>> cartesianProduct(org.eclipse.collections.api.set.SetIterable<A> set1,
org.eclipse.collections.api.set.SetIterable<B> set2)
Copyright © 2004–2017. All rights reserved.