Class TreeSortedSet<T>
- java.lang.Object
-
- org.eclipse.collections.impl.AbstractRichIterable<T>
-
- org.eclipse.collections.impl.collection.mutable.AbstractMutableCollection<T>
-
- org.eclipse.collections.impl.set.sorted.mutable.TreeSortedSet<T>
-
- All Implemented Interfaces:
Externalizable,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 class TreeSortedSet<T> extends AbstractMutableCollection<T> implements Externalizable, MutableSortedSet<T>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TreeSortedSet()TreeSortedSet(Iterable<? extends T> iterable)TreeSortedSet(Comparator<? super T> comparator)TreeSortedSet(Comparator<? super T> comparator, Iterable<? extends T> iterable)TreeSortedSet(SortedSet<T> set)
-
Method Summary
-
Methods inherited from class org.eclipse.collections.impl.collection.mutable.AbstractMutableCollection
addAllIterable, chunk, countBy, countByEach, countByWith, groupByUniqueKey, injectIntoWith, reduce, removeAll, removeIf, removeIfWith, retainAll, retainAllIterable, selectAndRejectWith, sumByDouble, sumByFloat, sumByInt, sumByLong
-
Methods inherited from class org.eclipse.collections.impl.AbstractRichIterable
allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, asLazy, collect, collectIf, collectWith, containsAllArguments, containsAllIterable, count, countWith, detect, detectOptional, detectWith, detectWithIfNone, detectWithOptional, flatCollect, forEach, forEachWith, forEachWithIndex, groupBy, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, into, isEmpty, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, reject, rejectWith, select, selectWith, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, 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, 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, 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 org.eclipse.collections.api.ordered.SortedIterable
max, min
-
Methods inherited from interface java.util.SortedSet
spliterator
-
-
-
-
Constructor Detail
-
TreeSortedSet
public TreeSortedSet()
-
TreeSortedSet
public TreeSortedSet(Comparator<? super T> comparator)
-
TreeSortedSet
public TreeSortedSet(Comparator<? super T> comparator, Iterable<? extends T> iterable)
-
-
Method Detail
-
newSet
public static <T> TreeSortedSet<T> newSet()
-
newSet
public static <T> TreeSortedSet<T> newSet(Comparator<? super T> comparator)
-
newSet
public static <T> TreeSortedSet<T> newSet(Iterable<? extends T> source)
-
newSet
public static <T> TreeSortedSet<T> newSet(Comparator<? super T> comparator, Iterable<? extends T> iterable)
-
newSetWith
public static <T> TreeSortedSet<T> newSetWith(T... elements)
-
newSetWith
public static <T> TreeSortedSet<T> newSetWith(Comparator<? super T> comparator, T... elements)
-
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>
-
asParallel
public ParallelSortedSetIterable<T> asParallel(ExecutorService executorService, int batchSize)
- Specified by:
asParallelin interfaceSetIterable<T>- Specified by:
asParallelin interfaceSortedSetIterable<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>
-
add
public boolean add(T element)
- Specified by:
addin interfaceCollection<T>- Specified by:
addin interfaceSet<T>- Overrides:
addin classAbstractMutableCollection<T>
-
remove
public boolean remove(Object element)
- Specified by:
removein interfaceCollection<T>- Specified by:
removein interfaceSet<T>- Overrides:
removein classAbstractMutableCollection<T>
-
addAll
public boolean addAll(Collection<? extends T> collection)
- Specified by:
addAllin interfaceCollection<T>- Specified by:
addAllin interfaceSet<T>- Overrides:
addAllin classAbstractMutableCollection<T>
-
contains
public boolean contains(Object o)
- Specified by:
containsin interfaceCollection<T>- Specified by:
containsin interfaceRichIterable<T>- Specified by:
containsin interfaceSet<T>- Overrides:
containsin classAbstractRichIterable<T>
-
containsAll
public boolean containsAll(Collection<?> collection)
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceRichIterable<T>- Specified by:
containsAllin interfaceSet<T>- Overrides:
containsAllin classAbstractRichIterable<T>
-
clear
public void clear()
-
clone
public TreeSortedSet<T> clone()
- Specified by:
clonein interfaceMutableSortedSet<T>
-
equals
public boolean equals(Object object)
-
hashCode
public int hashCode()
-
with
public TreeSortedSet<T> with(T element)
- Specified by:
within interfaceMutableCollection<T>- Specified by:
within interfaceMutableSetIterable<T>- Specified by:
within interfaceMutableSortedSet<T>
-
with
public TreeSortedSet<T> with(T element1, T element2)
-
with
public TreeSortedSet<T> with(T element1, T element2, T element3)
-
with
public TreeSortedSet<T> with(T... elements)
-
without
public TreeSortedSet<T> without(T element)
- Specified by:
withoutin interfaceMutableCollection<T>- Specified by:
withoutin interfaceMutableSetIterable<T>- Specified by:
withoutin interfaceMutableSortedSet<T>
-
withAll
public TreeSortedSet<T> withAll(Iterable<? extends T> elements)
- Specified by:
withAllin interfaceMutableCollection<T>- Specified by:
withAllin interfaceMutableSetIterable<T>- Specified by:
withAllin interfaceMutableSortedSet<T>
-
withoutAll
public TreeSortedSet<T> withoutAll(Iterable<? extends T> elements)
- Specified by:
withoutAllin interfaceMutableCollection<T>- Specified by:
withoutAllin interfaceMutableSetIterable<T>- Specified by:
withoutAllin interfaceMutableSortedSet<T>
-
newEmpty
public TreeSortedSet<T> newEmpty()
- Specified by:
newEmptyin interfaceMutableCollection<T>- Specified by:
newEmptyin interfaceMutableSortedSet<T>
-
tap
public TreeSortedSet<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>
-
each
public void each(Procedure<? super T> procedure)
- Specified by:
eachin interfaceRichIterable<T>
-
select
public TreeSortedSet<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>
-
reject
public TreeSortedSet<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>
-
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>
-
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>
-
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>
-
selectInstancesOf
public <S> TreeSortedSet<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>
-
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>
-
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>
-
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>
-
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>
-
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>
-
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>
-
selectWith
public <P> TreeSortedSet<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>
-
rejectWith
public <P> TreeSortedSet<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>
-
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>
-
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>
-
zipWithIndex
public TreeSortedSet<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>
-
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>
-
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>
-
removeAllIterable
public boolean removeAllIterable(Iterable<?> iterable)
- Specified by:
removeAllIterablein interfaceMutableCollection<T>- Overrides:
removeAllIterablein classAbstractMutableCollection<T>
-
comparator
public Comparator<? super T> comparator()
- Specified by:
comparatorin interfaceSortedIterable<T>- Specified by:
comparatorin interfaceSortedSet<T>- Specified by:
comparatorin interfaceSortedSetIterable<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>
-
getLast
public T getLast()
- Specified by:
getLastin interfaceMutableSortedSet<T>- Specified by:
getLastin interfaceOrderedIterable<T>- Specified by:
getLastin interfaceRichIterable<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>
-
union
public TreeSortedSet<T> union(SetIterable<? extends T> set)
- Specified by:
unionin interfaceMutableSortedSet<T>- Specified by:
unionin interfaceSetIterable<T>- Specified by:
unionin interfaceSortedSetIterable<T>
-
intersect
public TreeSortedSet<T> intersect(SetIterable<? extends T> set)
- Specified by:
intersectin interfaceMutableSortedSet<T>- Specified by:
intersectin interfaceSetIterable<T>- Specified by:
intersectin interfaceSortedSetIterable<T>
-
difference
public TreeSortedSet<T> difference(SetIterable<? extends T> subtrahendSet)
- Specified by:
differencein interfaceMutableSortedSet<T>- Specified by:
differencein interfaceSetIterable<T>- Specified by:
differencein interfaceSortedSetIterable<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>
-
unionInto
public <R extends Set<T>> R unionInto(SetIterable<? extends T> set, R targetSet)
- Specified by:
unionIntoin interfaceSetIterable<T>
-
intersectInto
public <R extends Set<T>> R intersectInto(SetIterable<? extends T> set, R targetSet)
- Specified by:
intersectIntoin interfaceSetIterable<T>
-
differenceInto
public <R extends Set<T>> R differenceInto(SetIterable<? extends T> subtrahendSet, R targetSet)
- Specified by:
differenceIntoin interfaceSetIterable<T>
-
symmetricDifferenceInto
public <R extends Set<T>> R symmetricDifferenceInto(SetIterable<? extends T> set, R targetSet)
- Specified by:
symmetricDifferenceIntoin interfaceSetIterable<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>
-
size
public int size()
- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceRichIterable<T>- Specified by:
sizein interfaceSet<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>
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
compareTo
public int compareTo(SortedSetIterable<T> otherSet)
- Specified by:
compareToin interfaceComparable<T>
-
-