public abstract class AbstractMultiReaderMutableCollection<T> extends Object implements MutableCollection<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractMultiReaderMutableCollection.LockWrapper |
static class |
AbstractMultiReaderMutableCollection.ReadWriteLockWrapper |
| Constructor and Description |
|---|
AbstractMultiReaderMutableCollection() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T item) |
boolean |
addAll(Collection<? extends T> collection) |
boolean |
addAllIterable(Iterable<? extends T> iterable) |
<K,V> MutableMap<K,V> |
aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator) |
boolean |
allSatisfy(Predicate<? super T> predicate) |
<P> boolean |
allSatisfyWith(Predicate2<? super T,? super P> predicate,
P parameter) |
boolean |
anySatisfy(Predicate<? super T> predicate) |
<P> boolean |
anySatisfyWith(Predicate2<? super T,? super P> predicate,
P parameter) |
void |
appendString(Appendable appendable) |
void |
appendString(Appendable appendable,
String separator) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
LazyIterable<T> |
asLazy() |
void |
clear() |
<V,R extends Collection<V>> |
collect(Function<? super T,? extends V> function,
R target) |
<R extends MutableBooleanCollection> |
collectBoolean(BooleanFunction<? super T> booleanFunction,
R target) |
<R extends MutableByteCollection> |
collectByte(ByteFunction<? super T> byteFunction,
R target) |
<R extends MutableCharCollection> |
collectChar(CharFunction<? super T> charFunction,
R target) |
<R extends MutableDoubleCollection> |
collectDouble(DoubleFunction<? super T> doubleFunction,
R target) |
<R extends MutableFloatCollection> |
collectFloat(FloatFunction<? super T> floatFunction,
R target) |
<V,R extends Collection<V>> |
collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function,
R target) |
<R extends MutableIntCollection> |
collectInt(IntFunction<? super T> intFunction,
R target) |
<R extends MutableLongCollection> |
collectLong(LongFunction<? super T> longFunction,
R target) |
<R extends MutableShortCollection> |
collectShort(ShortFunction<? super T> shortFunction,
R target) |
<P,V,R extends Collection<V>> |
collectWith(Function2<? super T,? super P,? extends V> function,
P parameter,
R targetCollection) |
boolean |
contains(Object item) |
boolean |
containsAll(Collection<?> collection) |
boolean |
containsAllArguments(Object... elements) |
boolean |
containsAllIterable(Iterable<?> source) |
int |
count(Predicate<? super T> predicate) |
<P> int |
countWith(Predicate2<? super T,? super P> predicate,
P parameter) |
T |
detect(Predicate<? super T> predicate) |
T |
detectIfNone(Predicate<? super T> predicate,
Function0<? extends T> function) |
Optional<T> |
detectOptional(Predicate<? super T> predicate) |
<P> T |
detectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> T |
detectWithIfNone(Predicate2<? super T,? super P> predicate,
P parameter,
Function0<? extends T> function) |
<P> Optional<T> |
detectWithOptional(Predicate2<? super T,? super P> predicate,
P parameter) |
void |
each(Procedure<? super T> procedure) |
<V,R extends Collection<V>> |
flatCollect(Function<? super T,? extends Iterable<V>> function,
R target) |
<R extends MutableBooleanCollection> |
flatCollectBoolean(Function<? super T,? extends BooleanIterable> function,
R target) |
<R extends MutableByteCollection> |
flatCollectByte(Function<? super T,? extends ByteIterable> function,
R target) |
<R extends MutableCharCollection> |
flatCollectChar(Function<? super T,? extends CharIterable> function,
R target) |
<R extends MutableDoubleCollection> |
flatCollectDouble(Function<? super T,? extends DoubleIterable> function,
R target) |
<R extends MutableFloatCollection> |
flatCollectFloat(Function<? super T,? extends FloatIterable> function,
R target) |
<R extends MutableIntCollection> |
flatCollectInt(Function<? super T,? extends IntIterable> function,
R target) |
<R extends MutableLongCollection> |
flatCollectLong(Function<? super T,? extends LongIterable> function,
R target) |
<R extends MutableShortCollection> |
flatCollectShort(Function<? super T,? extends ShortIterable> function,
R target) |
<P> void |
forEachWith(Procedure2<? super T,? super P> procedure,
P parameter) |
void |
forEachWithIndex(ObjectIntProcedure<? super T> objectIntProcedure) |
T |
getFirst() |
T |
getLast() |
T |
getOnly() |
<V,R extends MutableMultimap<V,T>> |
groupBy(Function<? super T,? extends V> function,
R target) |
<V,R extends MutableMultimap<V,T>> |
groupByEach(Function<? super T,? extends Iterable<V>> function,
R target) |
<V,R extends MutableMapIterable<V,T>> |
groupByUniqueKey(Function<? super T,? extends V> function,
R target) |
double |
injectInto(double injectedValue,
DoubleObjectToDoubleFunction<? super T> function) |
float |
injectInto(float injectedValue,
FloatObjectToFloatFunction<? super T> function) |
int |
injectInto(int injectedValue,
IntObjectToIntFunction<? super T> function) |
<IV> IV |
injectInto(IV injectedValue,
Function2<? super IV,? super T,? extends IV> function) |
long |
injectInto(long injectedValue,
LongObjectToLongFunction<? super T> function) |
<IV,P> IV |
injectIntoWith(IV injectValue,
Function3<? super IV,? super T,? super P,? extends IV> function,
P parameter) |
<R extends Collection<T>> |
into(R target) |
boolean |
isEmpty() |
Iterator<T> |
iterator()
This method is not supported directly on MultiReader collections because it is not thread-safe.
|
String |
makeString() |
String |
makeString(Function<? super T,Object> function,
String start,
String separator,
String end) |
String |
makeString(String separator) |
String |
makeString(String start,
String separator,
String end) |
T |
max() |
T |
max(Comparator<? super T> comparator) |
<V extends Comparable<? super V>> |
maxBy(Function<? super T,? extends V> function) |
<V extends Comparable<? super V>> |
maxByOptional(Function<? super T,? extends V> function) |
Optional<T> |
maxOptional() |
Optional<T> |
maxOptional(Comparator<? super T> comparator) |
T |
min() |
T |
min(Comparator<? super T> comparator) |
<V extends Comparable<? super V>> |
minBy(Function<? super T,? extends V> function) |
<V extends Comparable<? super V>> |
minByOptional(Function<? super T,? extends V> function) |
Optional<T> |
minOptional() |
Optional<T> |
minOptional(Comparator<? super T> comparator) |
boolean |
noneSatisfy(Predicate<? super T> predicate) |
<P> boolean |
noneSatisfyWith(Predicate2<? super T,? super P> predicate,
P parameter) |
boolean |
notEmpty() |
Stream<T> |
parallelStream()
This method is not supported directly on MultiReader collections because it is not thread-safe.
|
<R extends Collection<T>> |
reject(Predicate<? super T> predicate,
R target) |
<P,R extends Collection<T>> |
rejectWith(Predicate2<? super T,? super P> predicate,
P parameter,
R targetCollection) |
boolean |
remove(Object item) |
boolean |
removeAll(Collection<?> collection) |
boolean |
removeAllIterable(Iterable<?> iterable) |
boolean |
removeIf(Predicate<? super T> predicate) |
<P> boolean |
removeIfWith(Predicate2<? super T,? super P> predicate,
P parameter) |
boolean |
retainAll(Collection<?> collection) |
boolean |
retainAllIterable(Iterable<?> iterable) |
<R extends Collection<T>> |
select(Predicate<? super T> predicate,
R target) |
<P> Twin<MutableList<T>> |
selectAndRejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P,R extends Collection<T>> |
selectWith(Predicate2<? super T,? super P> predicate,
P parameter,
R targetCollection) |
int |
size() |
Spliterator<T> |
spliterator()
This method is not supported directly on MultiReader collections because it is not thread-safe.
|
Stream<T> |
stream()
This method is not supported directly on MultiReader collections because it is not thread-safe.
|
<V> MutableObjectDoubleMap<V> |
sumByDouble(Function<? super T,? extends V> groupBy,
DoubleFunction<? super T> function) |
<V> MutableObjectDoubleMap<V> |
sumByFloat(Function<? super T,? extends V> groupBy,
FloatFunction<? super T> function) |
<V> MutableObjectLongMap<V> |
sumByInt(Function<? super T,? extends V> groupBy,
IntFunction<? super T> function) |
<V> MutableObjectLongMap<V> |
sumByLong(Function<? super T,? extends V> groupBy,
LongFunction<? super T> function) |
double |
sumOfDouble(DoubleFunction<? super T> function) |
double |
sumOfFloat(FloatFunction<? super T> function) |
long |
sumOfInt(IntFunction<? super T> function) |
long |
sumOfLong(LongFunction<? super T> function) |
Object[] |
toArray() |
<E> E[] |
toArray(E[] a) |
MutableBag<T> |
toBag() |
<NK,NV> MutableBiMap<NK,NV> |
toBiMap(Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction) |
ImmutableBag<T> |
toImmutableBag() |
ImmutableList<T> |
toImmutableList() |
ImmutableSet<T> |
toImmutableSet() |
ImmutableSortedBag<T> |
toImmutableSortedBag() |
ImmutableSortedBag<T> |
toImmutableSortedBag(Comparator<? super T> comparator) |
<V extends Comparable<? super V>> |
toImmutableSortedBagBy(Function<? super T,? extends V> function) |
ImmutableList<T> |
toImmutableSortedList() |
ImmutableList<T> |
toImmutableSortedList(Comparator<? super T> comparator) |
<V extends Comparable<? super V>> |
toImmutableSortedListBy(Function<? super T,? extends V> function) |
ImmutableSortedSet<T> |
toImmutableSortedSet() |
ImmutableSortedSet<T> |
toImmutableSortedSet(Comparator<? super T> comparator) |
<V extends Comparable<? super V>> |
toImmutableSortedSetBy(Function<? super T,? extends V> function) |
MutableList<T> |
toList() |
<K,V,R extends Map<K,V>> |
toMap(Function<? super T,? extends K> keyFunction,
Function<? super T,? extends V> valueFunction,
R target) |
<NK,NV> MutableMap<NK,NV> |
toMap(Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction) |
MutableSet<T> |
toSet() |
MutableSortedBag<T> |
toSortedBag() |
MutableSortedBag<T> |
toSortedBag(Comparator<? super T> comparator) |
MutableList<T> |
toSortedList() |
MutableList<T> |
toSortedList(Comparator<? super T> comparator) |
<V extends Comparable<? super V>> |
toSortedListBy(Function<? super T,? extends V> function) |
<NK,NV> MutableSortedMap<NK,NV> |
toSortedMap(Comparator<? super NK> comparator,
Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction) |
<NK,NV> MutableSortedMap<NK,NV> |
toSortedMap(Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction) |
MutableSortedSet<T> |
toSortedSet() |
MutableSortedSet<T> |
toSortedSet(Comparator<? super T> comparator) |
<V extends Comparable<? super V>> |
toSortedSetBy(Function<? super T,? extends V> function) |
String |
toString() |
<S,R extends Collection<Pair<T,S>>> |
zip(Iterable<S> that,
R target) |
<R extends Collection<Pair<T,Integer>>> |
zipWithIndex(R target) |
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitaggregateBy, asSynchronized, asUnmodifiable, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, countBy, countByEach, countByWith, flatCollect, flatCollectWith, groupBy, groupByEach, groupByUniqueKey, newEmpty, partition, partitionWith, reject, rejectWith, select, selectInstancesOf, selectWith, tap, toImmutable, with, withAll, without, withoutAll, zip, zipWithIndexequals, hashCode, removeIfaggregateBy, chunk, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, countBy, countByEach, countByWith, flatCollectWith, forEach, getAny, groupByAndCollect, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, reduce, reduceInPlace, reduceInPlace, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, toImmutableBiMap, toImmutableMap, toSortedBagBy, toSortedMapByforEachpublic AbstractMultiReaderMutableCollection()
public boolean contains(Object item)
contains in interface Collection<T>contains in interface RichIterable<T>public boolean containsAll(Collection<?> collection)
containsAll in interface Collection<T>containsAll in interface RichIterable<T>public boolean containsAllIterable(Iterable<?> source)
containsAllIterable in interface RichIterable<T>public boolean containsAllArguments(Object... elements)
containsAllArguments in interface RichIterable<T>public boolean noneSatisfy(Predicate<? super T> predicate)
noneSatisfy in interface RichIterable<T>public <P> boolean noneSatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
noneSatisfyWith in interface RichIterable<T>public boolean allSatisfy(Predicate<? super T> predicate)
allSatisfy in interface RichIterable<T>public <P> boolean allSatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
allSatisfyWith in interface RichIterable<T>public boolean anySatisfy(Predicate<? super T> predicate)
anySatisfy in interface RichIterable<T>public <P> boolean anySatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
anySatisfyWith in interface RichIterable<T>public <R extends Collection<T>> R into(R target)
into in interface RichIterable<T>public MutableList<T> toList()
toList in interface RichIterable<T>public ImmutableList<T> toImmutableList()
toImmutableList in interface RichIterable<T>public <NK,NV> MutableMap<NK,NV> toMap(Function<? super T,? extends NK> keyFunction, Function<? super T,? extends NV> valueFunction)
toMap in interface RichIterable<T>public <K,V,R extends Map<K,V>> R toMap(Function<? super T,? extends K> keyFunction, Function<? super T,? extends V> valueFunction, R target)
toMap in interface RichIterable<T>public <NK,NV> MutableSortedMap<NK,NV> toSortedMap(Function<? super T,? extends NK> keyFunction, Function<? super T,? extends NV> valueFunction)
toSortedMap in interface RichIterable<T>public <NK,NV> MutableSortedMap<NK,NV> toSortedMap(Comparator<? super NK> comparator, Function<? super T,? extends NK> keyFunction, Function<? super T,? extends NV> valueFunction)
toSortedMap in interface RichIterable<T>public <NK,NV> MutableBiMap<NK,NV> toBiMap(Function<? super T,? extends NK> keyFunction, Function<? super T,? extends NV> valueFunction)
toBiMap in interface RichIterable<T>public LazyIterable<T> asLazy()
asLazy in interface RichIterable<T>public MutableSet<T> toSet()
toSet in interface RichIterable<T>public ImmutableSet<T> toImmutableSet()
toImmutableSet in interface RichIterable<T>public MutableBag<T> toBag()
toBag in interface RichIterable<T>public ImmutableBag<T> toImmutableBag()
toImmutableBag in interface RichIterable<T>public MutableSortedBag<T> toSortedBag()
toSortedBag in interface RichIterable<T>public ImmutableSortedBag<T> toImmutableSortedBag()
toImmutableSortedBag in interface RichIterable<T>public MutableSortedBag<T> toSortedBag(Comparator<? super T> comparator)
toSortedBag in interface RichIterable<T>public ImmutableSortedBag<T> toImmutableSortedBag(Comparator<? super T> comparator)
toImmutableSortedBag in interface RichIterable<T>public <V extends Comparable<? super V>> ImmutableSortedBag<T> toImmutableSortedBagBy(Function<? super T,? extends V> function)
toImmutableSortedBagBy in interface RichIterable<T>public MutableList<T> toSortedList()
toSortedList in interface RichIterable<T>public ImmutableList<T> toImmutableSortedList()
toImmutableSortedList in interface RichIterable<T>public MutableList<T> toSortedList(Comparator<? super T> comparator)
toSortedList in interface RichIterable<T>public ImmutableList<T> toImmutableSortedList(Comparator<? super T> comparator)
toImmutableSortedList in interface RichIterable<T>public <V extends Comparable<? super V>> MutableList<T> toSortedListBy(Function<? super T,? extends V> function)
toSortedListBy in interface RichIterable<T>public <V extends Comparable<? super V>> ImmutableList<T> toImmutableSortedListBy(Function<? super T,? extends V> function)
toImmutableSortedListBy in interface RichIterable<T>public MutableSortedSet<T> toSortedSet()
toSortedSet in interface RichIterable<T>public ImmutableSortedSet<T> toImmutableSortedSet()
toImmutableSortedSet in interface RichIterable<T>public MutableSortedSet<T> toSortedSet(Comparator<? super T> comparator)
toSortedSet in interface RichIterable<T>public ImmutableSortedSet<T> toImmutableSortedSet(Comparator<? super T> comparator)
toImmutableSortedSet in interface RichIterable<T>public <V extends Comparable<? super V>> MutableSortedSet<T> toSortedSetBy(Function<? super T,? extends V> function)
toSortedSetBy in interface RichIterable<T>public <V extends Comparable<? super V>> ImmutableSortedSet<T> toImmutableSortedSetBy(Function<? super T,? extends V> function)
toImmutableSortedSetBy in interface RichIterable<T>public int count(Predicate<? super T> predicate)
count in interface RichIterable<T>public <P> int countWith(Predicate2<? super T,? super P> predicate, P parameter)
countWith in interface RichIterable<T>public T detect(Predicate<? super T> predicate)
detect in interface RichIterable<T>public <P> T detectWith(Predicate2<? super T,? super P> predicate, P parameter)
detectWith in interface RichIterable<T>public Optional<T> detectOptional(Predicate<? super T> predicate)
detectOptional in interface RichIterable<T>public <P> Optional<T> detectWithOptional(Predicate2<? super T,? super P> predicate, P parameter)
detectWithOptional in interface RichIterable<T>public T detectIfNone(Predicate<? super T> predicate, Function0<? extends T> function)
detectIfNone in interface RichIterable<T>public <P> T detectWithIfNone(Predicate2<? super T,? super P> predicate, P parameter, Function0<? extends T> function)
detectWithIfNone in interface RichIterable<T>public T min(Comparator<? super T> comparator)
min in interface RichIterable<T>public T max(Comparator<? super T> comparator)
max in interface RichIterable<T>public Optional<T> minOptional(Comparator<? super T> comparator)
minOptional in interface RichIterable<T>public Optional<T> maxOptional(Comparator<? super T> comparator)
maxOptional in interface RichIterable<T>public T min()
min in interface RichIterable<T>public T max()
max in interface RichIterable<T>public Optional<T> minOptional()
minOptional in interface RichIterable<T>public Optional<T> maxOptional()
maxOptional in interface RichIterable<T>public <V extends Comparable<? super V>> T minBy(Function<? super T,? extends V> function)
minBy in interface RichIterable<T>public <V extends Comparable<? super V>> T maxBy(Function<? super T,? extends V> function)
maxBy in interface RichIterable<T>public <V extends Comparable<? super V>> Optional<T> minByOptional(Function<? super T,? extends V> function)
minByOptional in interface RichIterable<T>public <V extends Comparable<? super V>> Optional<T> maxByOptional(Function<? super T,? extends V> function)
maxByOptional in interface RichIterable<T>public T getFirst()
getFirst in interface RichIterable<T>public T getLast()
getLast in interface RichIterable<T>public T getOnly()
getOnly in interface RichIterable<T>public boolean notEmpty()
notEmpty in interface RichIterable<T>public <P> Twin<MutableList<T>> selectAndRejectWith(Predicate2<? super T,? super P> predicate, P parameter)
selectAndRejectWith in interface MutableCollection<T>public <V,R extends Collection<V>> R collect(Function<? super T,? extends V> function, R target)
collect in interface RichIterable<T>public <R extends MutableBooleanCollection> R collectBoolean(BooleanFunction<? super T> booleanFunction, R target)
collectBoolean in interface RichIterable<T>public <R extends MutableBooleanCollection> R flatCollectBoolean(Function<? super T,? extends BooleanIterable> function, R target)
flatCollectBoolean in interface RichIterable<T>public <R extends MutableByteCollection> R collectByte(ByteFunction<? super T> byteFunction, R target)
collectByte in interface RichIterable<T>public <R extends MutableByteCollection> R flatCollectByte(Function<? super T,? extends ByteIterable> function, R target)
flatCollectByte in interface RichIterable<T>public <R extends MutableCharCollection> R collectChar(CharFunction<? super T> charFunction, R target)
collectChar in interface RichIterable<T>public <R extends MutableCharCollection> R flatCollectChar(Function<? super T,? extends CharIterable> function, R target)
flatCollectChar in interface RichIterable<T>public <R extends MutableDoubleCollection> R collectDouble(DoubleFunction<? super T> doubleFunction, R target)
collectDouble in interface RichIterable<T>public <R extends MutableDoubleCollection> R flatCollectDouble(Function<? super T,? extends DoubleIterable> function, R target)
flatCollectDouble in interface RichIterable<T>public <R extends MutableFloatCollection> R collectFloat(FloatFunction<? super T> floatFunction, R target)
collectFloat in interface RichIterable<T>public <R extends MutableFloatCollection> R flatCollectFloat(Function<? super T,? extends FloatIterable> function, R target)
flatCollectFloat in interface RichIterable<T>public <R extends MutableIntCollection> R collectInt(IntFunction<? super T> intFunction, R target)
collectInt in interface RichIterable<T>public <R extends MutableIntCollection> R flatCollectInt(Function<? super T,? extends IntIterable> function, R target)
flatCollectInt in interface RichIterable<T>public <R extends MutableLongCollection> R collectLong(LongFunction<? super T> longFunction, R target)
collectLong in interface RichIterable<T>public <R extends MutableLongCollection> R flatCollectLong(Function<? super T,? extends LongIterable> function, R target)
flatCollectLong in interface RichIterable<T>public <R extends MutableShortCollection> R collectShort(ShortFunction<? super T> shortFunction, R target)
collectShort in interface RichIterable<T>public <R extends MutableShortCollection> R flatCollectShort(Function<? super T,? extends ShortIterable> function, R target)
flatCollectShort in interface RichIterable<T>public <V,R extends Collection<V>> R flatCollect(Function<? super T,? extends Iterable<V>> function, R target)
flatCollect in interface RichIterable<T>public <V,R extends Collection<V>> R collectIf(Predicate<? super T> predicate, Function<? super T,? extends V> function, R target)
collectIf in interface RichIterable<T>public <P,V,R extends Collection<V>> R collectWith(Function2<? super T,? super P,? extends V> function, P parameter, R targetCollection)
collectWith in interface RichIterable<T>public <P,R extends Collection<T>> R selectWith(Predicate2<? super T,? super P> predicate, P parameter, R targetCollection)
selectWith in interface RichIterable<T>public <R extends Collection<T>> R reject(Predicate<? super T> predicate, R target)
reject in interface RichIterable<T>public <P,R extends Collection<T>> R rejectWith(Predicate2<? super T,? super P> predicate, P parameter, R targetCollection)
rejectWith in interface RichIterable<T>public <R extends Collection<T>> R select(Predicate<? super T> predicate, R target)
select in interface RichIterable<T>public <IV> IV injectInto(IV injectedValue,
Function2<? super IV,? super T,? extends IV> function)
injectInto in interface RichIterable<T>public int injectInto(int injectedValue,
IntObjectToIntFunction<? super T> function)
injectInto in interface RichIterable<T>public long injectInto(long injectedValue,
LongObjectToLongFunction<? super T> function)
injectInto in interface RichIterable<T>public double injectInto(double injectedValue,
DoubleObjectToDoubleFunction<? super T> function)
injectInto in interface RichIterable<T>public float injectInto(float injectedValue,
FloatObjectToFloatFunction<? super T> function)
injectInto in interface RichIterable<T>public long sumOfInt(IntFunction<? super T> function)
sumOfInt in interface RichIterable<T>public double sumOfFloat(FloatFunction<? super T> function)
sumOfFloat in interface RichIterable<T>public long sumOfLong(LongFunction<? super T> function)
sumOfLong in interface RichIterable<T>public double sumOfDouble(DoubleFunction<? super T> function)
sumOfDouble in interface RichIterable<T>public <V> MutableObjectLongMap<V> sumByInt(Function<? super T,? extends V> groupBy, IntFunction<? super T> function)
sumByInt in interface MutableCollection<T>sumByInt in interface RichIterable<T>public <V> MutableObjectDoubleMap<V> sumByFloat(Function<? super T,? extends V> groupBy, FloatFunction<? super T> function)
sumByFloat in interface MutableCollection<T>sumByFloat in interface RichIterable<T>public <V> MutableObjectLongMap<V> sumByLong(Function<? super T,? extends V> groupBy, LongFunction<? super T> function)
sumByLong in interface MutableCollection<T>sumByLong in interface RichIterable<T>public <V> MutableObjectDoubleMap<V> sumByDouble(Function<? super T,? extends V> groupBy, DoubleFunction<? super T> function)
sumByDouble in interface MutableCollection<T>sumByDouble in interface RichIterable<T>public <IV,P> IV injectIntoWith(IV injectValue,
Function3<? super IV,? super T,? super P,? extends IV> function,
P parameter)
injectIntoWith in interface MutableCollection<T>public boolean removeIf(Predicate<? super T> predicate)
removeIf in interface MutableCollection<T>public <P> boolean removeIfWith(Predicate2<? super T,? super P> predicate, P parameter)
removeIfWith in interface MutableCollection<T>public boolean add(T item)
add in interface Collection<T>public boolean addAll(Collection<? extends T> collection)
addAll in interface Collection<T>public boolean addAllIterable(Iterable<? extends T> iterable)
addAllIterable in interface MutableCollection<T>public void clear()
clear in interface Collection<T>public boolean isEmpty()
isEmpty in interface Collection<T>isEmpty in interface RichIterable<T>public Iterator<T> iterator()
multiReaderList.withReadLockAndDelegate(MutableList<Person> ->
{
Iterator it = people.iterator();
....
});
final Collection jdkSet = new HashSet();
final boolean containsAll = new boolean[1];
multiReaderList.withReadLockAndDelegate(MutableList<Person> people ->
{
set.addAll(people); // addAll uses iterator() in AbstractCollection
containsAll[0] = set.containsAll(people); // containsAll uses iterator() in AbstractCollection
});
public Spliterator<T> spliterator()
spliterator in interface Iterable<T>spliterator in interface Collection<T>public Stream<T> stream()
stream in interface Collection<T>public Stream<T> parallelStream()
parallelStream in interface Collection<T>public boolean remove(Object item)
remove in interface Collection<T>public boolean removeAll(Collection<?> collection)
removeAll in interface Collection<T>public boolean removeAllIterable(Iterable<?> iterable)
removeAllIterable in interface MutableCollection<T>public boolean retainAll(Collection<?> collection)
retainAll in interface Collection<T>public boolean retainAllIterable(Iterable<?> iterable)
retainAllIterable in interface MutableCollection<T>public int size()
size in interface Collection<T>size in interface RichIterable<T>public Object[] toArray()
toArray in interface Collection<T>toArray in interface RichIterable<T>public <E> E[] toArray(E[] a)
toArray in interface Collection<T>toArray in interface RichIterable<T>public void each(Procedure<? super T> procedure)
each in interface RichIterable<T>public <P> void forEachWith(Procedure2<? super T,? super P> procedure, P parameter)
forEachWith in interface InternalIterable<T>public void forEachWithIndex(ObjectIntProcedure<? super T> objectIntProcedure)
forEachWithIndex in interface InternalIterable<T>public String toString()
toString in interface RichIterable<T>toString in class Objectpublic String makeString()
makeString in interface RichIterable<T>public String makeString(String separator)
makeString in interface RichIterable<T>public String makeString(String start, String separator, String end)
makeString in interface RichIterable<T>public String makeString(Function<? super T,Object> function, String start, String separator, String end)
makeString in interface RichIterable<T>public void appendString(Appendable appendable)
appendString in interface RichIterable<T>public void appendString(Appendable appendable, String separator)
appendString in interface RichIterable<T>public void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface RichIterable<T>public <V,R extends MutableMultimap<V,T>> R groupBy(Function<? super T,? extends V> function, R target)
groupBy in interface RichIterable<T>public <V,R extends MutableMultimap<V,T>> R groupByEach(Function<? super T,? extends Iterable<V>> function, R target)
groupByEach in interface RichIterable<T>public <V,R extends MutableMapIterable<V,T>> R groupByUniqueKey(Function<? super T,? extends V> function, R target)
groupByUniqueKey in interface RichIterable<T>public <S,R extends Collection<Pair<T,S>>> R zip(Iterable<S> that, R target)
zip in interface RichIterable<T>public <R extends Collection<Pair<T,Integer>>> R zipWithIndex(R target)
zipWithIndex in interface RichIterable<T>public <K,V> MutableMap<K,V> aggregateInPlaceBy(Function<? super T,? extends K> groupBy, Function0<? extends V> zeroValueFactory, Procedure2<? super V,? super T> mutatingAggregator)
aggregateInPlaceBy in interface MutableCollection<T>aggregateInPlaceBy in interface RichIterable<T>Copyright © 2004–2022. All rights reserved.