Class SortedSetAdapter<T>
- java.lang.Object
-
- org.eclipse.collections.impl.collection.mutable.AbstractCollectionAdapter<T>
-
- org.eclipse.collections.impl.set.sorted.mutable.SortedSetAdapter<T>
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<SortedSetIterable<T>>,Iterable<T>,Collection<T>,Set<T>,SortedSet<T>,MutableCollection<T>,InternalIterable<T>,OrderedIterable<T>,ReversibleIterable<T>,SortedIterable<T>,RichIterable<T>,MutableSetIterable<T>,SetIterable<T>,MutableSortedSet<T>,SortedSetIterable<T>
public final class SortedSetAdapter<T> extends AbstractCollectionAdapter<T> implements Serializable, MutableSortedSet<T>
This class provides a MutableSortedSet wrapper around a JDK Collections SortedSet interface instance. All the MutableSortedSet interface methods are supported in addition to the JDK SortedSet interface methods.To create a new wrapper around an existing SortedSet instance, use the
adapt(SortedSet)factory method.- See Also:
- Serialized Form
-
-
Method Summary
-
Methods inherited from class org.eclipse.collections.impl.collection.mutable.AbstractCollectionAdapter
add, addAll, addAllIterable, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, asLazy, chunk, clear, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, containsAllArguments, containsAllIterable, count, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, flatCollect, forEachWith, forEachWithIndex, getOnly, groupBy, groupByEach, groupByUniqueKey, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, injectIntoWith, into, isEmpty, iterator, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, notEmpty, reject, rejectWith, remove, removeAll, removeIf, removeIfWith, retainAll, retainAllIterable, select, selectAndRejectWith, selectWith, size, sumByDouble, sumByFloat, sumByInt, sumByLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedList, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toString, zip, zipWithIndex
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface org.eclipse.collections.api.InternalIterable
forEach, forEachWith
-
Methods inherited from interface org.eclipse.collections.api.collection.MutableCollection
addAllIterable, aggregateBy, aggregateInPlaceBy, countBy, countByEach, countByWith, groupByUniqueKey, injectIntoWith, removeIf, removeIfWith, retainAllIterable, selectAndRejectWith, sumByDouble, sumByFloat, sumByInt, sumByLong
-
Methods inherited from interface org.eclipse.collections.api.set.sorted.MutableSortedSet
collectWithIndex, flatCollectWith, toImmutableSortedSet
-
Methods inherited from interface org.eclipse.collections.api.ordered.OrderedIterable
collectWithIndex, forEachWithIndex, getFirstOptional, getLastOptional, rejectWithIndex, selectWithIndex, toStack, zip, zipWithIndex
-
Methods inherited from interface org.eclipse.collections.api.ordered.ReversibleIterable
asReversed
-
Methods inherited from interface org.eclipse.collections.api.RichIterable
aggregateBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, count, countBy, countByEach, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, flatCollectWith, forEach, getAny, getOnly, groupBy, groupByAndCollect, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, into, isEmpty, makeString, makeString, makeString, makeString, max, maxBy, maxByOptional, maxOptional, maxOptional, min, minBy, minByOptional, minOptional, minOptional, noneSatisfy, noneSatisfyWith, notEmpty, reduce, reduceInPlace, reduceInPlace, reject, rejectWith, select, selectWith, size, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toImmutableBag, toImmutableBiMap, toImmutableList, toImmutableMap, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSetBy, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, toString
-
Methods inherited from interface java.util.Set
add, addAll, clear, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
-
Methods inherited from interface org.eclipse.collections.api.ordered.SortedIterable
max, min
-
Methods inherited from interface java.util.SortedSet
spliterator
-
-
-
-
Method Detail
-
asUnmodifiable
public MutableSortedSet<T> asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableCollection<T>- Specified by:
asUnmodifiablein interfaceMutableSortedSet<T>
-
asSynchronized
public MutableSortedSet<T> asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableCollection<T>- Specified by:
asSynchronizedin interfaceMutableSortedSet<T>
-
toImmutable
public ImmutableSortedSet<T> toImmutable()
- Specified by:
toImmutablein interfaceMutableCollection<T>- Specified by:
toImmutablein interfaceMutableSortedSet<T>- Specified by:
toImmutablein interfaceSetIterable<T>- Specified by:
toImmutablein interfaceSortedSetIterable<T>
-
adapt
public static <T> MutableSortedSet<T> adapt(SortedSet<T> set)
-
clone
public MutableSortedSet<T> clone()
- Specified by:
clonein interfaceMutableSortedSet<T>
-
contains
public boolean contains(Object o)
- Specified by:
containsin interfaceCollection<T>- Specified by:
containsin interfaceRichIterable<T>- Specified by:
containsin interfaceSet<T>- Overrides:
containsin classAbstractCollectionAdapter<T>
-
containsAll
public boolean containsAll(Collection<?> collection)
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceRichIterable<T>- Specified by:
containsAllin interfaceSet<T>- Overrides:
containsAllin classAbstractCollectionAdapter<T>
-
equals
public boolean equals(Object obj)
-
hashCode
public int hashCode()
-
with
public SortedSetAdapter<T> with(T element)
- Specified by:
within interfaceMutableCollection<T>- Specified by:
within interfaceMutableSetIterable<T>- Specified by:
within interfaceMutableSortedSet<T>
-
with
public SortedSetAdapter<T> with(T element1, T element2)
-
with
public SortedSetAdapter<T> with(T element1, T element2, T element3)
-
with
public SortedSetAdapter<T> with(T... elements)
-
without
public SortedSetAdapter<T> without(T element)
- Specified by:
withoutin interfaceMutableCollection<T>- Specified by:
withoutin interfaceMutableSetIterable<T>- Specified by:
withoutin interfaceMutableSortedSet<T>
-
withAll
public SortedSetAdapter<T> withAll(Iterable<? extends T> elements)
- Specified by:
withAllin interfaceMutableCollection<T>- Specified by:
withAllin interfaceMutableSetIterable<T>- Specified by:
withAllin interfaceMutableSortedSet<T>
-
withoutAll
public SortedSetAdapter<T> withoutAll(Iterable<? extends T> elements)
- Specified by:
withoutAllin interfaceMutableCollection<T>- Specified by:
withoutAllin interfaceMutableSetIterable<T>- Specified by:
withoutAllin interfaceMutableSortedSet<T>
-
newEmpty
@Deprecated public MutableSortedSet<T> newEmpty()
Deprecated.useTreeSortedSet.newSet()instead (inlineable)- Specified by:
newEmptyin interfaceMutableCollection<T>- Specified by:
newEmptyin interfaceMutableSortedSet<T>
-
removeAllIterable
public boolean removeAllIterable(Iterable<?> iterable)
- Specified by:
removeAllIterablein interfaceMutableCollection<T>- Overrides:
removeAllIterablein classAbstractCollectionAdapter<T>
-
tap
public MutableSortedSet<T> tap(Procedure<? super T> procedure)
- Specified by:
tapin interfaceMutableCollection<T>- Specified by:
tapin interfaceMutableSetIterable<T>- Specified by:
tapin interfaceMutableSortedSet<T>- Specified by:
tapin interfaceOrderedIterable<T>- Specified by:
tapin interfaceReversibleIterable<T>- Specified by:
tapin interfaceRichIterable<T>- Specified by:
tapin interfaceSetIterable<T>- Specified by:
tapin interfaceSortedIterable<T>- Specified by:
tapin interfaceSortedSetIterable<T>- Overrides:
tapin classAbstractCollectionAdapter<T>
-
select
public MutableSortedSet<T> select(Predicate<? super T> predicate)
- Specified by:
selectin interfaceMutableCollection<T>- Specified by:
selectin interfaceMutableSetIterable<T>- Specified by:
selectin interfaceMutableSortedSet<T>- Specified by:
selectin interfaceOrderedIterable<T>- Specified by:
selectin interfaceReversibleIterable<T>- Specified by:
selectin interfaceRichIterable<T>- Specified by:
selectin interfaceSetIterable<T>- Specified by:
selectin interfaceSortedIterable<T>- Specified by:
selectin interfaceSortedSetIterable<T>- Overrides:
selectin classAbstractCollectionAdapter<T>
-
reject
public MutableSortedSet<T> reject(Predicate<? super T> predicate)
- Specified by:
rejectin interfaceMutableCollection<T>- Specified by:
rejectin interfaceMutableSetIterable<T>- Specified by:
rejectin interfaceMutableSortedSet<T>- Specified by:
rejectin interfaceOrderedIterable<T>- Specified by:
rejectin interfaceReversibleIterable<T>- Specified by:
rejectin interfaceRichIterable<T>- Specified by:
rejectin interfaceSetIterable<T>- Specified by:
rejectin interfaceSortedIterable<T>- Specified by:
rejectin interfaceSortedSetIterable<T>- Overrides:
rejectin classAbstractCollectionAdapter<T>
-
partition
public PartitionMutableSortedSet<T> partition(Predicate<? super T> predicate)
- Specified by:
partitionin interfaceMutableCollection<T>- Specified by:
partitionin interfaceMutableSetIterable<T>- Specified by:
partitionin interfaceMutableSortedSet<T>- Specified by:
partitionin interfaceOrderedIterable<T>- Specified by:
partitionin interfaceReversibleIterable<T>- Specified by:
partitionin interfaceRichIterable<T>- Specified by:
partitionin interfaceSetIterable<T>- Specified by:
partitionin interfaceSortedIterable<T>- Specified by:
partitionin interfaceSortedSetIterable<T>- Overrides:
partitionin classAbstractCollectionAdapter<T>
-
partitionWith
public <P> PartitionMutableSortedSet<T> partitionWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
partitionWithin interfaceMutableCollection<T>- Specified by:
partitionWithin interfaceMutableSetIterable<T>- Specified by:
partitionWithin interfaceMutableSortedSet<T>- Specified by:
partitionWithin interfaceOrderedIterable<T>- Specified by:
partitionWithin interfaceReversibleIterable<T>- Specified by:
partitionWithin interfaceRichIterable<T>- Specified by:
partitionWithin interfaceSetIterable<T>- Specified by:
partitionWithin interfaceSortedSetIterable<T>- Overrides:
partitionWithin classAbstractCollectionAdapter<T>
-
partitionWhile
public PartitionMutableSortedSet<T> partitionWhile(Predicate<? super T> predicate)
- Specified by:
partitionWhilein interfaceMutableSortedSet<T>- Specified by:
partitionWhilein interfaceOrderedIterable<T>- Specified by:
partitionWhilein interfaceReversibleIterable<T>- Specified by:
partitionWhilein interfaceSortedIterable<T>- Specified by:
partitionWhilein interfaceSortedSetIterable<T>
-
takeWhile
public MutableSortedSet<T> takeWhile(Predicate<? super T> predicate)
- Specified by:
takeWhilein interfaceMutableSortedSet<T>- Specified by:
takeWhilein interfaceOrderedIterable<T>- Specified by:
takeWhilein interfaceReversibleIterable<T>- Specified by:
takeWhilein interfaceSortedIterable<T>- Specified by:
takeWhilein interfaceSortedSetIterable<T>
-
dropWhile
public MutableSortedSet<T> dropWhile(Predicate<? super T> predicate)
- Specified by:
dropWhilein interfaceMutableSortedSet<T>- Specified by:
dropWhilein interfaceOrderedIterable<T>- Specified by:
dropWhilein interfaceReversibleIterable<T>- Specified by:
dropWhilein interfaceSortedIterable<T>- Specified by:
dropWhilein interfaceSortedSetIterable<T>
-
selectInstancesOf
public <S> MutableSortedSet<S> selectInstancesOf(Class<S> clazz)
- Specified by:
selectInstancesOfin interfaceMutableCollection<T>- Specified by:
selectInstancesOfin interfaceMutableSetIterable<T>- Specified by:
selectInstancesOfin interfaceMutableSortedSet<T>- Specified by:
selectInstancesOfin interfaceOrderedIterable<T>- Specified by:
selectInstancesOfin interfaceReversibleIterable<T>- Specified by:
selectInstancesOfin interfaceRichIterable<T>- Specified by:
selectInstancesOfin interfaceSetIterable<T>- Specified by:
selectInstancesOfin interfaceSortedIterable<T>- Specified by:
selectInstancesOfin interfaceSortedSetIterable<T>- Overrides:
selectInstancesOfin classAbstractCollectionAdapter<T>
-
collect
public <V> MutableList<V> collect(Function<? super T,? extends V> function)
- Specified by:
collectin interfaceMutableCollection<T>- Specified by:
collectin interfaceMutableSortedSet<T>- Specified by:
collectin interfaceOrderedIterable<T>- Specified by:
collectin interfaceReversibleIterable<T>- Specified by:
collectin interfaceRichIterable<T>- Specified by:
collectin interfaceSortedSetIterable<T>- Overrides:
collectin classAbstractCollectionAdapter<T>
-
collectBoolean
public MutableBooleanList collectBoolean(BooleanFunction<? super T> booleanFunction)
- Specified by:
collectBooleanin interfaceMutableCollection<T>- Specified by:
collectBooleanin interfaceMutableSortedSet<T>- Specified by:
collectBooleanin interfaceOrderedIterable<T>- Specified by:
collectBooleanin interfaceReversibleIterable<T>- Specified by:
collectBooleanin interfaceRichIterable<T>- Specified by:
collectBooleanin interfaceSortedSetIterable<T>
-
collectByte
public MutableByteList collectByte(ByteFunction<? super T> byteFunction)
- Specified by:
collectBytein interfaceMutableCollection<T>- Specified by:
collectBytein interfaceMutableSortedSet<T>- Specified by:
collectBytein interfaceOrderedIterable<T>- Specified by:
collectBytein interfaceReversibleIterable<T>- Specified by:
collectBytein interfaceRichIterable<T>- Specified by:
collectBytein interfaceSortedSetIterable<T>
-
collectChar
public MutableCharList collectChar(CharFunction<? super T> charFunction)
- Specified by:
collectCharin interfaceMutableCollection<T>- Specified by:
collectCharin interfaceMutableSortedSet<T>- Specified by:
collectCharin interfaceOrderedIterable<T>- Specified by:
collectCharin interfaceReversibleIterable<T>- Specified by:
collectCharin interfaceRichIterable<T>- Specified by:
collectCharin interfaceSortedSetIterable<T>
-
collectDouble
public MutableDoubleList collectDouble(DoubleFunction<? super T> doubleFunction)
- Specified by:
collectDoublein interfaceMutableCollection<T>- Specified by:
collectDoublein interfaceMutableSortedSet<T>- Specified by:
collectDoublein interfaceOrderedIterable<T>- Specified by:
collectDoublein interfaceReversibleIterable<T>- Specified by:
collectDoublein interfaceRichIterable<T>- Specified by:
collectDoublein interfaceSortedSetIterable<T>
-
collectFloat
public MutableFloatList collectFloat(FloatFunction<? super T> floatFunction)
- Specified by:
collectFloatin interfaceMutableCollection<T>- Specified by:
collectFloatin interfaceMutableSortedSet<T>- Specified by:
collectFloatin interfaceOrderedIterable<T>- Specified by:
collectFloatin interfaceReversibleIterable<T>- Specified by:
collectFloatin interfaceRichIterable<T>- Specified by:
collectFloatin interfaceSortedSetIterable<T>
-
collectInt
public MutableIntList collectInt(IntFunction<? super T> intFunction)
- Specified by:
collectIntin interfaceMutableCollection<T>- Specified by:
collectIntin interfaceMutableSortedSet<T>- Specified by:
collectIntin interfaceOrderedIterable<T>- Specified by:
collectIntin interfaceReversibleIterable<T>- Specified by:
collectIntin interfaceRichIterable<T>- Specified by:
collectIntin interfaceSortedSetIterable<T>
-
collectLong
public MutableLongList collectLong(LongFunction<? super T> longFunction)
- Specified by:
collectLongin interfaceMutableCollection<T>- Specified by:
collectLongin interfaceMutableSortedSet<T>- Specified by:
collectLongin interfaceOrderedIterable<T>- Specified by:
collectLongin interfaceReversibleIterable<T>- Specified by:
collectLongin interfaceRichIterable<T>- Specified by:
collectLongin interfaceSortedSetIterable<T>
-
collectShort
public MutableShortList collectShort(ShortFunction<? super T> shortFunction)
- Specified by:
collectShortin interfaceMutableCollection<T>- Specified by:
collectShortin interfaceMutableSortedSet<T>- Specified by:
collectShortin interfaceOrderedIterable<T>- Specified by:
collectShortin interfaceReversibleIterable<T>- Specified by:
collectShortin interfaceRichIterable<T>- Specified by:
collectShortin interfaceSortedSetIterable<T>
-
collectIf
public <V> MutableList<V> collectIf(Predicate<? super T> predicate, Function<? super T,? extends V> function)
- Specified by:
collectIfin interfaceMutableCollection<T>- Specified by:
collectIfin interfaceMutableSortedSet<T>- Specified by:
collectIfin interfaceOrderedIterable<T>- Specified by:
collectIfin interfaceReversibleIterable<T>- Specified by:
collectIfin interfaceRichIterable<T>- Specified by:
collectIfin interfaceSortedSetIterable<T>- Overrides:
collectIfin classAbstractCollectionAdapter<T>
-
flatCollect
public <V> MutableList<V> flatCollect(Function<? super T,? extends Iterable<V>> function)
- Specified by:
flatCollectin interfaceMutableCollection<T>- Specified by:
flatCollectin interfaceMutableSortedSet<T>- Specified by:
flatCollectin interfaceOrderedIterable<T>- Specified by:
flatCollectin interfaceReversibleIterable<T>- Specified by:
flatCollectin interfaceRichIterable<T>- Specified by:
flatCollectin interfaceSortedSetIterable<T>- Overrides:
flatCollectin classAbstractCollectionAdapter<T>
-
detectIndex
public int detectIndex(Predicate<? super T> predicate)
- Specified by:
detectIndexin interfaceOrderedIterable<T>
-
groupBy
public <V> TreeSortedSetMultimap<V,T> groupBy(Function<? super T,? extends V> function)
- Specified by:
groupByin interfaceMutableCollection<T>- Specified by:
groupByin interfaceMutableSetIterable<T>- Specified by:
groupByin interfaceMutableSortedSet<T>- Specified by:
groupByin interfaceOrderedIterable<T>- Specified by:
groupByin interfaceReversibleIterable<T>- Specified by:
groupByin interfaceRichIterable<T>- Specified by:
groupByin interfaceSortedIterable<T>- Specified by:
groupByin interfaceSortedSetIterable<T>- Overrides:
groupByin classAbstractCollectionAdapter<T>
-
groupByEach
public <V> TreeSortedSetMultimap<V,T> groupByEach(Function<? super T,? extends Iterable<V>> function)
- Specified by:
groupByEachin interfaceMutableCollection<T>- Specified by:
groupByEachin interfaceMutableSetIterable<T>- Specified by:
groupByEachin interfaceMutableSortedSet<T>- Specified by:
groupByEachin interfaceOrderedIterable<T>- Specified by:
groupByEachin interfaceReversibleIterable<T>- Specified by:
groupByEachin interfaceRichIterable<T>- Specified by:
groupByEachin interfaceSortedIterable<T>- Specified by:
groupByEachin interfaceSortedSetIterable<T>- Overrides:
groupByEachin classAbstractCollectionAdapter<T>
-
selectWith
public <P> MutableSortedSet<T> selectWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
selectWithin interfaceMutableCollection<T>- Specified by:
selectWithin interfaceMutableSetIterable<T>- Specified by:
selectWithin interfaceMutableSortedSet<T>- Specified by:
selectWithin interfaceOrderedIterable<T>- Specified by:
selectWithin interfaceReversibleIterable<T>- Specified by:
selectWithin interfaceRichIterable<T>- Specified by:
selectWithin interfaceSetIterable<T>- Specified by:
selectWithin interfaceSortedIterable<T>- Specified by:
selectWithin interfaceSortedSetIterable<T>- Overrides:
selectWithin classAbstractCollectionAdapter<T>
-
rejectWith
public <P> MutableSortedSet<T> rejectWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
rejectWithin interfaceMutableCollection<T>- Specified by:
rejectWithin interfaceMutableSetIterable<T>- Specified by:
rejectWithin interfaceMutableSortedSet<T>- Specified by:
rejectWithin interfaceOrderedIterable<T>- Specified by:
rejectWithin interfaceReversibleIterable<T>- Specified by:
rejectWithin interfaceRichIterable<T>- Specified by:
rejectWithin interfaceSetIterable<T>- Specified by:
rejectWithin interfaceSortedIterable<T>- Specified by:
rejectWithin interfaceSortedSetIterable<T>- Overrides:
rejectWithin classAbstractCollectionAdapter<T>
-
collectWith
public <P,V> MutableList<V> collectWith(Function2<? super T,? super P,? extends V> function, P parameter)
- Specified by:
collectWithin interfaceMutableCollection<T>- Specified by:
collectWithin interfaceMutableSortedSet<T>- Specified by:
collectWithin interfaceOrderedIterable<T>- Specified by:
collectWithin interfaceReversibleIterable<T>- Specified by:
collectWithin interfaceRichIterable<T>- Specified by:
collectWithin interfaceSortedSetIterable<T>- Overrides:
collectWithin classAbstractCollectionAdapter<T>
-
zip
public <S> MutableList<Pair<T,S>> zip(Iterable<S> that)
- Specified by:
zipin interfaceMutableCollection<T>- Specified by:
zipin interfaceMutableSetIterable<T>- Specified by:
zipin interfaceMutableSortedSet<T>- Specified by:
zipin interfaceOrderedIterable<T>- Specified by:
zipin interfaceReversibleIterable<T>- Specified by:
zipin interfaceRichIterable<T>- Specified by:
zipin interfaceSortedIterable<T>- Overrides:
zipin classAbstractCollectionAdapter<T>
-
zipWithIndex
public MutableSortedSet<Pair<T,Integer>> zipWithIndex()
- Specified by:
zipWithIndexin interfaceMutableCollection<T>- Specified by:
zipWithIndexin interfaceMutableSetIterable<T>- Specified by:
zipWithIndexin interfaceMutableSortedSet<T>- Specified by:
zipWithIndexin interfaceOrderedIterable<T>- Specified by:
zipWithIndexin interfaceReversibleIterable<T>- Specified by:
zipWithIndexin interfaceRichIterable<T>- Specified by:
zipWithIndexin interfaceSetIterable<T>- Specified by:
zipWithIndexin interfaceSortedIterable<T>- Specified by:
zipWithIndexin interfaceSortedSetIterable<T>- Overrides:
zipWithIndexin classAbstractCollectionAdapter<T>
-
distinct
public MutableSortedSet<T> distinct()
- Specified by:
distinctin interfaceMutableSortedSet<T>- Specified by:
distinctin interfaceOrderedIterable<T>- Specified by:
distinctin interfaceReversibleIterable<T>- Specified by:
distinctin interfaceSortedIterable<T>- Specified by:
distinctin interfaceSortedSetIterable<T>
-
corresponds
public <S> boolean corresponds(OrderedIterable<S> other, Predicate2<? super T,? super S> predicate)
- Specified by:
correspondsin interfaceOrderedIterable<T>
-
forEach
public void forEach(int fromIndex, int toIndex, Procedure<? super T> procedure)- Specified by:
forEachin interfaceOrderedIterable<T>
-
forEachWithIndex
public void forEachWithIndex(int fromIndex, int toIndex, ObjectIntProcedure<? super T> objectIntProcedure)- Specified by:
forEachWithIndexin interfaceOrderedIterable<T>
-
union
public MutableSortedSet<T> union(SetIterable<? extends T> set)
- Specified by:
unionin interfaceMutableSortedSet<T>- Specified by:
unionin interfaceSetIterable<T>- Specified by:
unionin interfaceSortedSetIterable<T>
-
unionInto
public <R extends Set<T>> R unionInto(SetIterable<? extends T> set, R targetSet)
- Specified by:
unionIntoin interfaceSetIterable<T>
-
intersect
public MutableSortedSet<T> intersect(SetIterable<? extends T> set)
- Specified by:
intersectin interfaceMutableSortedSet<T>- Specified by:
intersectin interfaceSetIterable<T>- Specified by:
intersectin interfaceSortedSetIterable<T>
-
intersectInto
public <R extends Set<T>> R intersectInto(SetIterable<? extends T> set, R targetSet)
- Specified by:
intersectIntoin interfaceSetIterable<T>
-
difference
public MutableSortedSet<T> difference(SetIterable<? extends T> subtrahendSet)
- Specified by:
differencein interfaceMutableSortedSet<T>- Specified by:
differencein interfaceSetIterable<T>- Specified by:
differencein interfaceSortedSetIterable<T>
-
differenceInto
public <R extends Set<T>> R differenceInto(SetIterable<? extends T> subtrahendSet, R targetSet)
- Specified by:
differenceIntoin interfaceSetIterable<T>
-
symmetricDifference
public MutableSortedSet<T> symmetricDifference(SetIterable<? extends T> setB)
- Specified by:
symmetricDifferencein interfaceMutableSortedSet<T>- Specified by:
symmetricDifferencein interfaceSetIterable<T>- Specified by:
symmetricDifferencein interfaceSortedSetIterable<T>
-
symmetricDifferenceInto
public <R extends Set<T>> R symmetricDifferenceInto(SetIterable<? extends T> set, R targetSet)
- Specified by:
symmetricDifferenceIntoin interfaceSetIterable<T>
-
comparator
public Comparator<? super T> comparator()
- Specified by:
comparatorin interfaceSortedIterable<T>- Specified by:
comparatorin interfaceSortedSet<T>- Specified by:
comparatorin interfaceSortedSetIterable<T>
-
isSubsetOf
public boolean isSubsetOf(SetIterable<? extends T> candidateSuperset)
- Specified by:
isSubsetOfin interfaceSetIterable<T>
-
isProperSubsetOf
public boolean isProperSubsetOf(SetIterable<? extends T> candidateSuperset)
- Specified by:
isProperSubsetOfin interfaceSetIterable<T>
-
powerSet
public MutableSortedSet<SortedSetIterable<T>> powerSet()
- Specified by:
powerSetin interfaceMutableSortedSet<T>- Specified by:
powerSetin interfaceSortedSetIterable<T>
-
cartesianProduct
public <B> LazyIterable<Pair<T,B>> cartesianProduct(SetIterable<B> set)
- Specified by:
cartesianProductin interfaceSetIterable<T>
-
subSet
public MutableSortedSet<T> subSet(T fromElement, T toElement)
-
headSet
public MutableSortedSet<T> headSet(T toElement)
-
tailSet
public MutableSortedSet<T> tailSet(T fromElement)
-
indexOf
public int indexOf(Object object)
- Specified by:
indexOfin interfaceOrderedIterable<T>
-
getFirst
public T getFirst()
- Specified by:
getFirstin interfaceMutableSortedSet<T>- Specified by:
getFirstin interfaceOrderedIterable<T>- Specified by:
getFirstin interfaceRichIterable<T>- Overrides:
getFirstin classAbstractCollectionAdapter<T>
-
getLast
public T getLast()
- Specified by:
getLastin interfaceMutableSortedSet<T>- Specified by:
getLastin interfaceOrderedIterable<T>- Specified by:
getLastin interfaceRichIterable<T>- Overrides:
getLastin classAbstractCollectionAdapter<T>
-
compareTo
public int compareTo(SortedSetIterable<T> o)
- Specified by:
compareToin interfaceComparable<T>
-
asParallel
public ParallelSortedSetIterable<T> asParallel(ExecutorService executorService, int batchSize)
- Specified by:
asParallelin interfaceSetIterable<T>- Specified by:
asParallelin interfaceSortedSetIterable<T>
-
toReversed
public MutableSortedSet<T> toReversed()
- Specified by:
toReversedin interfaceMutableSortedSet<T>- Specified by:
toReversedin interfaceReversibleIterable<T>- Specified by:
toReversedin interfaceSortedSetIterable<T>
-
take
public MutableSortedSet<T> take(int count)
- Specified by:
takein interfaceMutableSortedSet<T>- Specified by:
takein interfaceReversibleIterable<T>- Specified by:
takein interfaceSortedSetIterable<T>
-
drop
public MutableSortedSet<T> drop(int count)
- Specified by:
dropin interfaceMutableSortedSet<T>- Specified by:
dropin interfaceReversibleIterable<T>- Specified by:
dropin interfaceSortedSetIterable<T>
-
reverseForEach
public void reverseForEach(Procedure<? super T> procedure)
- Specified by:
reverseForEachin interfaceReversibleIterable<T>
-
reverseForEachWithIndex
public void reverseForEachWithIndex(ObjectIntProcedure<? super T> procedure)
- Specified by:
reverseForEachWithIndexin interfaceReversibleIterable<T>
-
detectLastIndex
public int detectLastIndex(Predicate<? super T> predicate)
- Specified by:
detectLastIndexin interfaceReversibleIterable<T>
-
-