Class SynchronizedSortedBag<T>
- java.lang.Object
-
- org.eclipse.collections.impl.collection.AbstractSynchronizedRichIterable<T>
-
- org.eclipse.collections.impl.collection.mutable.AbstractSynchronizedMutableCollection<T>
-
- org.eclipse.collections.impl.bag.sorted.mutable.SynchronizedSortedBag<T>
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<SortedBag<T>>
,Iterable<T>
,Collection<T>
,Bag<T>
,MutableBagIterable<T>
,MutableSortedBag<T>
,SortedBag<T>
,MutableCollection<T>
,InternalIterable<T>
,OrderedIterable<T>
,ReversibleIterable<T>
,SortedIterable<T>
,RichIterable<T>
public class SynchronizedSortedBag<T> extends AbstractSynchronizedMutableCollection<T> implements MutableSortedBag<T>, Serializable
A synchronized view of aMutableSortedBag
. It is imperative that the user manually synchronize on the collection when iterating over it using the standard JDK iterator or JDK 5 for loop, as perCollections.synchronizedCollection(Collection)
.- See Also:
MutableSortedBag.asSynchronized()
, Serialized Form
-
-
Method Summary
-
Methods inherited from class org.eclipse.collections.impl.collection.mutable.AbstractSynchronizedMutableCollection
add, addAll, addAllIterable, aggregateBy, aggregateInPlaceBy, clear, countBy, countByEach, countByWith, groupByUniqueKey, injectIntoWith, remove, removeAll, removeAllIterable, removeIf, removeIfWith, retainAll, retainAllIterable, selectAndRejectWith, sumByDouble, sumByFloat, sumByInt, sumByLong
-
Methods inherited from class org.eclipse.collections.impl.collection.AbstractSynchronizedRichIterable
allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsNone, containsNoneIterable, count, countBy, countByEach, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, equals, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, forEachWith, forEachWithIndex, getFirst, getLast, getOnly, groupBy, groupByEach, groupByUniqueKey, hashCode, injectInto, injectInto, injectInto, injectInto, injectInto, into, isEmpty, iterator, makeString, makeString, makeString, makeString, max, max, maxBy, maxByOptional, maxOptional, maxOptional, min, min, minBy, minByOptional, minOptional, minOptional, noneSatisfy, noneSatisfyWith, notEmpty, reject, rejectWith, select, selectWith, size, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toImmutableBag, toImmutableList, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toString, zip, zipWithIndex
-
Methods inherited from interface org.eclipse.collections.api.bag.Bag
aggregateBy, equals, hashCode, reduceInPlace, reduceInPlace, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong
-
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, 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, flatCollectWith, groupByUniqueKey, injectIntoWith, removeAllIterable, removeIf, removeIfWith, retainAllIterable, selectAndRejectWith, sumByDouble, sumByFloat, sumByInt, sumByLong
-
Methods inherited from interface org.eclipse.collections.api.bag.sorted.MutableSortedBag
countBy, countByEach, countByWith, flatCollectWith, selectDuplicates, toImmutableSortedBag, with, withAll, without, withoutAll
-
Methods inherited from interface org.eclipse.collections.api.ordered.OrderedIterable
forEachWithIndex, getFirst, getLast, rejectWithIndex, selectWithIndex, zip, zipWithIndex
-
Methods inherited from interface org.eclipse.collections.api.ordered.ReversibleIterable
asReversed
-
Methods inherited from interface org.eclipse.collections.api.RichIterable
allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, 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, reject, rejectWith, select, selectWith, size, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toImmutableBag, toImmutableBiMap, toImmutableList, toImmutableMap, toImmutableSet, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, toString
-
-
-
-
Method Detail
-
of
public static <E> SynchronizedSortedBag<E> of(MutableSortedBag<E> bag)
-
of
public static <E> MutableSortedBag<E> of(MutableSortedBag<E> bag, Object lock)
-
newEmpty
public MutableSortedBag<T> newEmpty()
- Specified by:
newEmpty
in interfaceMutableCollection<T>
- Specified by:
newEmpty
in interfaceMutableSortedBag<T>
-
clone
public MutableSortedBag<T> clone()
- Specified by:
clone
in interfaceMutableSortedBag<T>
-
comparator
public Comparator<? super T> comparator()
- Specified by:
comparator
in interfaceSortedBag<T>
- Specified by:
comparator
in interfaceSortedIterable<T>
-
compareTo
public int compareTo(SortedBag<T> o)
- Specified by:
compareTo
in interfaceComparable<T>
-
addOccurrences
public int addOccurrences(T item, int occurrences)
- Specified by:
addOccurrences
in interfaceMutableBagIterable<T>
-
removeOccurrences
public boolean removeOccurrences(Object item, int occurrences)
- Specified by:
removeOccurrences
in interfaceMutableBagIterable<T>
-
setOccurrences
public boolean setOccurrences(T item, int occurrences)
- Specified by:
setOccurrences
in interfaceMutableBagIterable<T>
-
topOccurrences
public MutableList<ObjectIntPair<T>> topOccurrences(int count)
- Specified by:
topOccurrences
in interfaceBag<T>
- Specified by:
topOccurrences
in interfaceMutableBagIterable<T>
-
selectByOccurrences
public MutableSortedBag<T> selectByOccurrences(IntPredicate predicate)
- Specified by:
selectByOccurrences
in interfaceBag<T>
- Specified by:
selectByOccurrences
in interfaceMutableBagIterable<T>
- Specified by:
selectByOccurrences
in interfaceMutableSortedBag<T>
- Specified by:
selectByOccurrences
in interfaceSortedBag<T>
-
bottomOccurrences
public MutableList<ObjectIntPair<T>> bottomOccurrences(int count)
- Specified by:
bottomOccurrences
in interfaceBag<T>
- Specified by:
bottomOccurrences
in interfaceMutableBagIterable<T>
-
toMapOfItemToCount
public MutableSortedMap<T,Integer> toMapOfItemToCount()
- Specified by:
toMapOfItemToCount
in interfaceBag<T>
- Specified by:
toMapOfItemToCount
in interfaceMutableBagIterable<T>
- Specified by:
toMapOfItemToCount
in interfaceMutableSortedBag<T>
- Specified by:
toMapOfItemToCount
in interfaceSortedBag<T>
-
forEachWithOccurrences
public void forEachWithOccurrences(ObjectIntProcedure<? super T> procedure)
- Specified by:
forEachWithOccurrences
in interfaceBag<T>
-
anySatisfyWithOccurrences
public boolean anySatisfyWithOccurrences(ObjectIntPredicate<? super T> predicate)
- Specified by:
anySatisfyWithOccurrences
in interfaceBag<T>
-
allSatisfyWithOccurrences
public boolean allSatisfyWithOccurrences(ObjectIntPredicate<? super T> predicate)
- Specified by:
allSatisfyWithOccurrences
in interfaceBag<T>
-
noneSatisfyWithOccurrences
public boolean noneSatisfyWithOccurrences(ObjectIntPredicate<? super T> predicate)
- Specified by:
noneSatisfyWithOccurrences
in interfaceBag<T>
-
detectWithOccurrences
public T detectWithOccurrences(ObjectIntPredicate<? super T> predicate)
- Specified by:
detectWithOccurrences
in interfaceBag<T>
-
collectWithOccurrences
public <V> MutableList<V> collectWithOccurrences(ObjectIntToObjectFunction<? super T,? extends V> function)
- Specified by:
collectWithOccurrences
in interfaceBag<T>
- Specified by:
collectWithOccurrences
in interfaceMutableBagIterable<T>
- Specified by:
collectWithOccurrences
in interfaceMutableSortedBag<T>
- Specified by:
collectWithOccurrences
in interfaceSortedBag<T>
-
collectWithOccurrences
public <V,R extends Collection<V>> R collectWithOccurrences(ObjectIntToObjectFunction<? super T,? extends V> function, R target)
- Specified by:
collectWithOccurrences
in interfaceBag<T>
- Since:
- 9.1.
-
occurrencesOf
public int occurrencesOf(Object item)
- Specified by:
occurrencesOf
in interfaceBag<T>
-
sizeDistinct
public int sizeDistinct()
- Specified by:
sizeDistinct
in interfaceBag<T>
-
toStringOfItemToCount
public String toStringOfItemToCount()
- Specified by:
toStringOfItemToCount
in interfaceBag<T>
-
indexOf
public int indexOf(Object object)
- Specified by:
indexOf
in interfaceOrderedIterable<T>
-
toStack
public MutableStack<T> toStack()
- Specified by:
toStack
in interfaceOrderedIterable<T>
-
partitionWhile
public PartitionMutableSortedBag<T> partitionWhile(Predicate<? super T> predicate)
- Specified by:
partitionWhile
in interfaceMutableSortedBag<T>
- Specified by:
partitionWhile
in interfaceOrderedIterable<T>
- Specified by:
partitionWhile
in interfaceReversibleIterable<T>
- Specified by:
partitionWhile
in interfaceSortedBag<T>
- Specified by:
partitionWhile
in interfaceSortedIterable<T>
-
distinct
public MutableSortedSet<T> distinct()
- Specified by:
distinct
in interfaceMutableSortedBag<T>
- Specified by:
distinct
in interfaceOrderedIterable<T>
- Specified by:
distinct
in interfaceReversibleIterable<T>
- Specified by:
distinct
in interfaceSortedBag<T>
- Specified by:
distinct
in interfaceSortedIterable<T>
-
takeWhile
public MutableSortedBag<T> takeWhile(Predicate<? super T> predicate)
- Specified by:
takeWhile
in interfaceMutableSortedBag<T>
- Specified by:
takeWhile
in interfaceOrderedIterable<T>
- Specified by:
takeWhile
in interfaceReversibleIterable<T>
- Specified by:
takeWhile
in interfaceSortedBag<T>
- Specified by:
takeWhile
in interfaceSortedIterable<T>
-
dropWhile
public MutableSortedBag<T> dropWhile(Predicate<? super T> predicate)
- Specified by:
dropWhile
in interfaceMutableSortedBag<T>
- Specified by:
dropWhile
in interfaceOrderedIterable<T>
- Specified by:
dropWhile
in interfaceReversibleIterable<T>
- Specified by:
dropWhile
in interfaceSortedBag<T>
- Specified by:
dropWhile
in interfaceSortedIterable<T>
-
corresponds
public <S> boolean corresponds(OrderedIterable<S> other, Predicate2<? super T,? super S> predicate)
- Specified by:
corresponds
in interfaceOrderedIterable<T>
-
forEach
public void forEach(int startIndex, int endIndex, Procedure<? super T> procedure)
- Specified by:
forEach
in interfaceOrderedIterable<T>
-
forEachWithIndex
public void forEachWithIndex(int fromIndex, int toIndex, ObjectIntProcedure<? super T> objectIntProcedure)
- Specified by:
forEachWithIndex
in interfaceOrderedIterable<T>
-
detectIndex
public int detectIndex(Predicate<? super T> predicate)
- Specified by:
detectIndex
in interfaceOrderedIterable<T>
-
tap
public MutableSortedBag<T> tap(Procedure<? super T> procedure)
- Specified by:
tap
in interfaceBag<T>
- Specified by:
tap
in interfaceMutableBagIterable<T>
- Specified by:
tap
in interfaceMutableCollection<T>
- Specified by:
tap
in interfaceMutableSortedBag<T>
- Specified by:
tap
in interfaceOrderedIterable<T>
- Specified by:
tap
in interfaceReversibleIterable<T>
- Specified by:
tap
in interfaceRichIterable<T>
- Specified by:
tap
in interfaceSortedBag<T>
- Specified by:
tap
in interfaceSortedIterable<T>
- Overrides:
tap
in classAbstractSynchronizedMutableCollection<T>
-
select
public MutableSortedBag<T> select(Predicate<? super T> predicate)
- Specified by:
select
in interfaceBag<T>
- Specified by:
select
in interfaceMutableBagIterable<T>
- Specified by:
select
in interfaceMutableCollection<T>
- Specified by:
select
in interfaceMutableSortedBag<T>
- Specified by:
select
in interfaceOrderedIterable<T>
- Specified by:
select
in interfaceReversibleIterable<T>
- Specified by:
select
in interfaceRichIterable<T>
- Specified by:
select
in interfaceSortedBag<T>
- Specified by:
select
in interfaceSortedIterable<T>
- Overrides:
select
in classAbstractSynchronizedMutableCollection<T>
-
selectWith
public <P> MutableSortedBag<T> selectWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
selectWith
in interfaceBag<T>
- Specified by:
selectWith
in interfaceMutableBagIterable<T>
- Specified by:
selectWith
in interfaceMutableCollection<T>
- Specified by:
selectWith
in interfaceMutableSortedBag<T>
- Specified by:
selectWith
in interfaceOrderedIterable<T>
- Specified by:
selectWith
in interfaceReversibleIterable<T>
- Specified by:
selectWith
in interfaceRichIterable<T>
- Specified by:
selectWith
in interfaceSortedBag<T>
- Specified by:
selectWith
in interfaceSortedIterable<T>
- Overrides:
selectWith
in classAbstractSynchronizedMutableCollection<T>
-
reject
public MutableSortedBag<T> reject(Predicate<? super T> predicate)
- Specified by:
reject
in interfaceBag<T>
- Specified by:
reject
in interfaceMutableBagIterable<T>
- Specified by:
reject
in interfaceMutableCollection<T>
- Specified by:
reject
in interfaceMutableSortedBag<T>
- Specified by:
reject
in interfaceOrderedIterable<T>
- Specified by:
reject
in interfaceReversibleIterable<T>
- Specified by:
reject
in interfaceRichIterable<T>
- Specified by:
reject
in interfaceSortedBag<T>
- Specified by:
reject
in interfaceSortedIterable<T>
- Overrides:
reject
in classAbstractSynchronizedMutableCollection<T>
-
rejectWith
public <P> MutableSortedBag<T> rejectWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
rejectWith
in interfaceBag<T>
- Specified by:
rejectWith
in interfaceMutableBagIterable<T>
- Specified by:
rejectWith
in interfaceMutableCollection<T>
- Specified by:
rejectWith
in interfaceMutableSortedBag<T>
- Specified by:
rejectWith
in interfaceOrderedIterable<T>
- Specified by:
rejectWith
in interfaceReversibleIterable<T>
- Specified by:
rejectWith
in interfaceRichIterable<T>
- Specified by:
rejectWith
in interfaceSortedBag<T>
- Specified by:
rejectWith
in interfaceSortedIterable<T>
- Overrides:
rejectWith
in classAbstractSynchronizedMutableCollection<T>
-
partition
public PartitionMutableSortedBag<T> partition(Predicate<? super T> predicate)
- Specified by:
partition
in interfaceBag<T>
- Specified by:
partition
in interfaceMutableBagIterable<T>
- Specified by:
partition
in interfaceMutableCollection<T>
- Specified by:
partition
in interfaceMutableSortedBag<T>
- Specified by:
partition
in interfaceOrderedIterable<T>
- Specified by:
partition
in interfaceReversibleIterable<T>
- Specified by:
partition
in interfaceRichIterable<T>
- Specified by:
partition
in interfaceSortedBag<T>
- Specified by:
partition
in interfaceSortedIterable<T>
- Overrides:
partition
in classAbstractSynchronizedMutableCollection<T>
-
partitionWith
public <P> PartitionMutableSortedBag<T> partitionWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
partitionWith
in interfaceBag<T>
- Specified by:
partitionWith
in interfaceMutableBagIterable<T>
- Specified by:
partitionWith
in interfaceMutableCollection<T>
- Specified by:
partitionWith
in interfaceMutableSortedBag<T>
- Specified by:
partitionWith
in interfaceOrderedIterable<T>
- Specified by:
partitionWith
in interfaceReversibleIterable<T>
- Specified by:
partitionWith
in interfaceRichIterable<T>
- Specified by:
partitionWith
in interfaceSortedBag<T>
- Overrides:
partitionWith
in classAbstractSynchronizedMutableCollection<T>
-
collectBoolean
public MutableBooleanList collectBoolean(BooleanFunction<? super T> booleanFunction)
- Specified by:
collectBoolean
in interfaceMutableCollection<T>
- Specified by:
collectBoolean
in interfaceMutableSortedBag<T>
- Specified by:
collectBoolean
in interfaceOrderedIterable<T>
- Specified by:
collectBoolean
in interfaceReversibleIterable<T>
- Specified by:
collectBoolean
in interfaceRichIterable<T>
- Specified by:
collectBoolean
in interfaceSortedBag<T>
- Overrides:
collectBoolean
in classAbstractSynchronizedMutableCollection<T>
-
collectByte
public MutableByteList collectByte(ByteFunction<? super T> byteFunction)
- Specified by:
collectByte
in interfaceMutableCollection<T>
- Specified by:
collectByte
in interfaceMutableSortedBag<T>
- Specified by:
collectByte
in interfaceOrderedIterable<T>
- Specified by:
collectByte
in interfaceReversibleIterable<T>
- Specified by:
collectByte
in interfaceRichIterable<T>
- Specified by:
collectByte
in interfaceSortedBag<T>
- Overrides:
collectByte
in classAbstractSynchronizedMutableCollection<T>
-
collectChar
public MutableCharList collectChar(CharFunction<? super T> charFunction)
- Specified by:
collectChar
in interfaceMutableCollection<T>
- Specified by:
collectChar
in interfaceMutableSortedBag<T>
- Specified by:
collectChar
in interfaceOrderedIterable<T>
- Specified by:
collectChar
in interfaceReversibleIterable<T>
- Specified by:
collectChar
in interfaceRichIterable<T>
- Specified by:
collectChar
in interfaceSortedBag<T>
- Overrides:
collectChar
in classAbstractSynchronizedMutableCollection<T>
-
collectDouble
public MutableDoubleList collectDouble(DoubleFunction<? super T> doubleFunction)
- Specified by:
collectDouble
in interfaceMutableCollection<T>
- Specified by:
collectDouble
in interfaceMutableSortedBag<T>
- Specified by:
collectDouble
in interfaceOrderedIterable<T>
- Specified by:
collectDouble
in interfaceReversibleIterable<T>
- Specified by:
collectDouble
in interfaceRichIterable<T>
- Specified by:
collectDouble
in interfaceSortedBag<T>
- Overrides:
collectDouble
in classAbstractSynchronizedMutableCollection<T>
-
collectFloat
public MutableFloatList collectFloat(FloatFunction<? super T> floatFunction)
- Specified by:
collectFloat
in interfaceMutableCollection<T>
- Specified by:
collectFloat
in interfaceMutableSortedBag<T>
- Specified by:
collectFloat
in interfaceOrderedIterable<T>
- Specified by:
collectFloat
in interfaceReversibleIterable<T>
- Specified by:
collectFloat
in interfaceRichIterable<T>
- Specified by:
collectFloat
in interfaceSortedBag<T>
- Overrides:
collectFloat
in classAbstractSynchronizedMutableCollection<T>
-
collectInt
public MutableIntList collectInt(IntFunction<? super T> intFunction)
- Specified by:
collectInt
in interfaceMutableCollection<T>
- Specified by:
collectInt
in interfaceMutableSortedBag<T>
- Specified by:
collectInt
in interfaceOrderedIterable<T>
- Specified by:
collectInt
in interfaceReversibleIterable<T>
- Specified by:
collectInt
in interfaceRichIterable<T>
- Specified by:
collectInt
in interfaceSortedBag<T>
- Overrides:
collectInt
in classAbstractSynchronizedMutableCollection<T>
-
collectLong
public MutableLongList collectLong(LongFunction<? super T> longFunction)
- Specified by:
collectLong
in interfaceMutableCollection<T>
- Specified by:
collectLong
in interfaceMutableSortedBag<T>
- Specified by:
collectLong
in interfaceOrderedIterable<T>
- Specified by:
collectLong
in interfaceReversibleIterable<T>
- Specified by:
collectLong
in interfaceRichIterable<T>
- Specified by:
collectLong
in interfaceSortedBag<T>
- Overrides:
collectLong
in classAbstractSynchronizedMutableCollection<T>
-
collectShort
public MutableShortList collectShort(ShortFunction<? super T> shortFunction)
- Specified by:
collectShort
in interfaceMutableCollection<T>
- Specified by:
collectShort
in interfaceMutableSortedBag<T>
- Specified by:
collectShort
in interfaceOrderedIterable<T>
- Specified by:
collectShort
in interfaceReversibleIterable<T>
- Specified by:
collectShort
in interfaceRichIterable<T>
- Specified by:
collectShort
in interfaceSortedBag<T>
- Overrides:
collectShort
in classAbstractSynchronizedMutableCollection<T>
-
selectInstancesOf
public <S> MutableSortedBag<S> selectInstancesOf(Class<S> clazz)
- Specified by:
selectInstancesOf
in interfaceBag<T>
- Specified by:
selectInstancesOf
in interfaceMutableBagIterable<T>
- Specified by:
selectInstancesOf
in interfaceMutableCollection<T>
- Specified by:
selectInstancesOf
in interfaceMutableSortedBag<T>
- Specified by:
selectInstancesOf
in interfaceOrderedIterable<T>
- Specified by:
selectInstancesOf
in interfaceReversibleIterable<T>
- Specified by:
selectInstancesOf
in interfaceRichIterable<T>
- Specified by:
selectInstancesOf
in interfaceSortedBag<T>
- Specified by:
selectInstancesOf
in interfaceSortedIterable<T>
- Overrides:
selectInstancesOf
in classAbstractSynchronizedMutableCollection<T>
-
collect
public <V> MutableList<V> collect(Function<? super T,? extends V> function)
- Specified by:
collect
in interfaceMutableCollection<T>
- Specified by:
collect
in interfaceMutableSortedBag<T>
- Specified by:
collect
in interfaceOrderedIterable<T>
- Specified by:
collect
in interfaceReversibleIterable<T>
- Specified by:
collect
in interfaceRichIterable<T>
- Specified by:
collect
in interfaceSortedBag<T>
- Overrides:
collect
in classAbstractSynchronizedMutableCollection<T>
-
collectWithIndex
public <V> MutableList<V> collectWithIndex(ObjectIntToObjectFunction<? super T,? extends V> function)
- Specified by:
collectWithIndex
in interfaceMutableSortedBag<T>
- Specified by:
collectWithIndex
in interfaceOrderedIterable<T>
- Specified by:
collectWithIndex
in interfaceReversibleIterable<T>
- Specified by:
collectWithIndex
in interfaceSortedBag<T>
- Since:
- 9.1.
-
collectWithIndex
public <V,R extends Collection<V>> R collectWithIndex(ObjectIntToObjectFunction<? super T,? extends V> function, R target)
- Specified by:
collectWithIndex
in interfaceOrderedIterable<T>
- Since:
- 9.1.
-
zipWithIndex
public MutableSortedSet<Pair<T,Integer>> zipWithIndex()
- Specified by:
zipWithIndex
in interfaceBag<T>
- Specified by:
zipWithIndex
in interfaceMutableBagIterable<T>
- Specified by:
zipWithIndex
in interfaceMutableCollection<T>
- Specified by:
zipWithIndex
in interfaceMutableSortedBag<T>
- Specified by:
zipWithIndex
in interfaceOrderedIterable<T>
- Specified by:
zipWithIndex
in interfaceReversibleIterable<T>
- Specified by:
zipWithIndex
in interfaceRichIterable<T>
- Specified by:
zipWithIndex
in interfaceSortedBag<T>
- Specified by:
zipWithIndex
in interfaceSortedIterable<T>
- Overrides:
zipWithIndex
in classAbstractSynchronizedMutableCollection<T>
-
collectWith
public <P,V> MutableList<V> collectWith(Function2<? super T,? super P,? extends V> function, P parameter)
- Specified by:
collectWith
in interfaceMutableCollection<T>
- Specified by:
collectWith
in interfaceMutableSortedBag<T>
- Specified by:
collectWith
in interfaceOrderedIterable<T>
- Specified by:
collectWith
in interfaceReversibleIterable<T>
- Specified by:
collectWith
in interfaceRichIterable<T>
- Specified by:
collectWith
in interfaceSortedBag<T>
- Overrides:
collectWith
in classAbstractSynchronizedMutableCollection<T>
-
collectIf
public <V> MutableList<V> collectIf(Predicate<? super T> predicate, Function<? super T,? extends V> function)
- Specified by:
collectIf
in interfaceMutableCollection<T>
- Specified by:
collectIf
in interfaceMutableSortedBag<T>
- Specified by:
collectIf
in interfaceOrderedIterable<T>
- Specified by:
collectIf
in interfaceReversibleIterable<T>
- Specified by:
collectIf
in interfaceRichIterable<T>
- Specified by:
collectIf
in interfaceSortedBag<T>
- Overrides:
collectIf
in classAbstractSynchronizedMutableCollection<T>
-
flatCollect
public <V> MutableList<V> flatCollect(Function<? super T,? extends Iterable<V>> function)
- Specified by:
flatCollect
in interfaceMutableCollection<T>
- Specified by:
flatCollect
in interfaceMutableSortedBag<T>
- Specified by:
flatCollect
in interfaceOrderedIterable<T>
- Specified by:
flatCollect
in interfaceReversibleIterable<T>
- Specified by:
flatCollect
in interfaceRichIterable<T>
- Specified by:
flatCollect
in interfaceSortedBag<T>
- Overrides:
flatCollect
in classAbstractSynchronizedMutableCollection<T>
-
groupBy
public <V> MutableSortedBagMultimap<V,T> groupBy(Function<? super T,? extends V> function)
- Specified by:
groupBy
in interfaceBag<T>
- Specified by:
groupBy
in interfaceMutableBagIterable<T>
- Specified by:
groupBy
in interfaceMutableCollection<T>
- Specified by:
groupBy
in interfaceMutableSortedBag<T>
- Specified by:
groupBy
in interfaceOrderedIterable<T>
- Specified by:
groupBy
in interfaceReversibleIterable<T>
- Specified by:
groupBy
in interfaceRichIterable<T>
- Specified by:
groupBy
in interfaceSortedBag<T>
- Specified by:
groupBy
in interfaceSortedIterable<T>
- Overrides:
groupBy
in classAbstractSynchronizedMutableCollection<T>
-
groupByEach
public <V> MutableSortedBagMultimap<V,T> groupByEach(Function<? super T,? extends Iterable<V>> function)
- Specified by:
groupByEach
in interfaceBag<T>
- Specified by:
groupByEach
in interfaceMutableBagIterable<T>
- Specified by:
groupByEach
in interfaceMutableCollection<T>
- Specified by:
groupByEach
in interfaceMutableSortedBag<T>
- Specified by:
groupByEach
in interfaceOrderedIterable<T>
- Specified by:
groupByEach
in interfaceReversibleIterable<T>
- Specified by:
groupByEach
in interfaceRichIterable<T>
- Specified by:
groupByEach
in interfaceSortedBag<T>
- Specified by:
groupByEach
in interfaceSortedIterable<T>
- Overrides:
groupByEach
in classAbstractSynchronizedMutableCollection<T>
-
zip
public <S> MutableList<Pair<T,S>> zip(Iterable<S> that)
- Specified by:
zip
in interfaceMutableCollection<T>
- Specified by:
zip
in interfaceMutableSortedBag<T>
- Specified by:
zip
in interfaceOrderedIterable<T>
- Specified by:
zip
in interfaceReversibleIterable<T>
- Specified by:
zip
in interfaceRichIterable<T>
- Specified by:
zip
in interfaceSortedIterable<T>
- Overrides:
zip
in classAbstractSynchronizedMutableCollection<T>
-
asUnmodifiable
public MutableSortedBag<T> asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableCollection<T>
- Specified by:
asUnmodifiable
in interfaceMutableSortedBag<T>
-
asSynchronized
public MutableSortedBag<T> asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableCollection<T>
- Specified by:
asSynchronized
in interfaceMutableSortedBag<T>
-
toImmutable
public ImmutableSortedBag<T> toImmutable()
- Specified by:
toImmutable
in interfaceBag<T>
- Specified by:
toImmutable
in interfaceMutableCollection<T>
- Specified by:
toImmutable
in interfaceSortedBag<T>
-
drop
public MutableSortedBag<T> drop(int count)
- Specified by:
drop
in interfaceMutableSortedBag<T>
- Specified by:
drop
in interfaceReversibleIterable<T>
- Specified by:
drop
in interfaceSortedBag<T>
-
take
public MutableSortedBag<T> take(int count)
- Specified by:
take
in interfaceMutableSortedBag<T>
- Specified by:
take
in interfaceReversibleIterable<T>
- Specified by:
take
in interfaceSortedBag<T>
-
toReversed
public MutableSortedBag<T> toReversed()
- Specified by:
toReversed
in interfaceMutableSortedBag<T>
- Specified by:
toReversed
in interfaceReversibleIterable<T>
- Specified by:
toReversed
in interfaceSortedBag<T>
-
reverseForEach
public void reverseForEach(Procedure<? super T> procedure)
- Specified by:
reverseForEach
in interfaceReversibleIterable<T>
-
reverseForEachWithIndex
public void reverseForEachWithIndex(ObjectIntProcedure<? super T> procedure)
- Specified by:
reverseForEachWithIndex
in interfaceReversibleIterable<T>
-
detectLastIndex
public int detectLastIndex(Predicate<? super T> predicate)
- Specified by:
detectLastIndex
in interfaceReversibleIterable<T>
-
asParallel
public ParallelBag<T> asParallel(ExecutorService executorService, int batchSize)
-
getFirstOptional
public Optional<T> getFirstOptional()
- Specified by:
getFirstOptional
in interfaceOrderedIterable<T>
-
getLastOptional
public Optional<T> getLastOptional()
- Specified by:
getLastOptional
in interfaceOrderedIterable<T>
-
selectUnique
public MutableSortedSet<T> selectUnique()
- Specified by:
selectUnique
in interfaceBag<T>
- Specified by:
selectUnique
in interfaceMutableBagIterable<T>
- Specified by:
selectUnique
in interfaceMutableSortedBag<T>
- Specified by:
selectUnique
in interfaceSortedBag<T>
-
distinctView
public RichIterable<T> distinctView()
- Specified by:
distinctView
in interfaceBag<T>
-
-