@ThreadSafe public abstract class AbstractSynchronizedIntCollection extends Object implements MutableIntCollection, Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(int newItem) |
boolean |
addAll(int... source) |
boolean |
addAll(IntIterable source) |
boolean |
allSatisfy(IntPredicate predicate) |
boolean |
anySatisfy(IntPredicate predicate) |
void |
appendString(Appendable appendable)
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(Appendable appendable,
String separator)
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(Appendable appendable,
String start,
String separator,
String end)
Prints a string representation of this collection onto the given
Appendable. |
LazyIntIterable |
asLazy() |
MutableIntCollection |
asSynchronized() |
MutableIntCollection |
asUnmodifiable() |
double |
average() |
void |
clear() |
<V> MutableCollection<V> |
collect(IntToObjectFunction<? extends V> function) |
boolean |
contains(int value) |
boolean |
containsAll(int... source) |
boolean |
containsAll(IntIterable source) |
int |
count(IntPredicate predicate) |
int |
detectIfNone(IntPredicate predicate,
int ifNone) |
void |
each(IntProcedure procedure) |
void |
forEach(IntProcedure procedure) |
<T> T |
injectInto(T injectedValue,
ObjectIntToObjectFunction<? super T,? extends T> function) |
MutableIntIterator |
intIterator()
Must be called in a synchronized block.
|
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
String |
makeString()
Returns a string representation of this collection by delegating to
PrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space). |
String |
makeString(String separator)
Returns a string representation of this collection by delegating to
PrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String). |
String |
makeString(String start,
String separator,
String end)
Returns a string representation of this collection.
|
int |
max() |
int |
maxIfEmpty(int defaultValue) |
double |
median() |
int |
min() |
int |
minIfEmpty(int defaultValue) |
boolean |
noneSatisfy(IntPredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
MutableIntCollection |
reject(IntPredicate predicate) |
boolean |
remove(int value) |
boolean |
removeAll(int... source) |
boolean |
removeAll(IntIterable source) |
boolean |
retainAll(int... source) |
boolean |
retainAll(IntIterable source) |
MutableIntCollection |
select(IntPredicate predicate) |
int |
size()
Returns the number of items in this iterable.
|
long |
sum() |
int[] |
toArray() |
MutableIntBag |
toBag() |
ImmutableIntCollection |
toImmutable() |
MutableIntList |
toList() |
MutableIntSet |
toSet() |
int[] |
toSortedArray() |
MutableIntList |
toSortedList() |
String |
toString()
Returns a string representation of this PrimitiveIterable.
|
MutableIntCollection |
with(int element) |
MutableIntCollection |
withAll(IntIterable elements) |
MutableIntCollection |
without(int element) |
MutableIntCollection |
withoutAll(IntIterable elements) |
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitsummaryStatisticspublic int size()
PrimitiveIterablesize in interface PrimitiveIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablepublic void clear()
clear in interface MutableIntCollectionpublic MutableIntCollection select(IntPredicate predicate)
select in interface MutableIntCollectionselect in interface IntIterablepublic MutableIntCollection reject(IntPredicate predicate)
reject in interface MutableIntCollectionreject in interface IntIterablepublic <V> MutableCollection<V> collect(IntToObjectFunction<? extends V> function)
collect in interface MutableIntCollectioncollect in interface IntIterablepublic MutableIntCollection with(int element)
with in interface MutableIntCollectionpublic MutableIntCollection without(int element)
without in interface MutableIntCollectionpublic MutableIntCollection withAll(IntIterable elements)
withAll in interface MutableIntCollectionpublic MutableIntCollection withoutAll(IntIterable elements)
withoutAll in interface MutableIntCollectionpublic MutableIntCollection asUnmodifiable()
asUnmodifiable in interface MutableIntCollectionpublic MutableIntCollection asSynchronized()
asSynchronized in interface MutableIntCollectionpublic ImmutableIntCollection toImmutable()
toImmutable in interface MutableIntCollectionpublic LazyIntIterable asLazy()
asLazy in interface IntIterablepublic boolean contains(int value)
contains in interface IntIterablepublic boolean containsAll(int... source)
containsAll in interface IntIterablepublic boolean containsAll(IntIterable source)
containsAll in interface IntIterablepublic boolean add(int newItem)
add in interface MutableIntCollectionpublic boolean addAll(int... source)
addAll in interface MutableIntCollectionpublic boolean addAll(IntIterable source)
addAll in interface MutableIntCollectionpublic boolean remove(int value)
remove in interface MutableIntCollectionpublic boolean removeAll(IntIterable source)
removeAll in interface MutableIntCollectionpublic boolean removeAll(int... source)
removeAll in interface MutableIntCollectionpublic boolean retainAll(IntIterable source)
retainAll in interface MutableIntCollectionCollection.retainAll(Collection)public boolean retainAll(int... source)
retainAll in interface MutableIntCollectionCollection.retainAll(Collection)public MutableIntIterator intIterator()
intIterator in interface MutableIntCollectionintIterator in interface IntIterablepublic void forEach(IntProcedure procedure)
forEach in interface IntIterablepublic void each(IntProcedure procedure)
each in interface IntIterablepublic int count(IntPredicate predicate)
count in interface IntIterablepublic boolean anySatisfy(IntPredicate predicate)
anySatisfy in interface IntIterablepublic boolean allSatisfy(IntPredicate predicate)
allSatisfy in interface IntIterablepublic boolean noneSatisfy(IntPredicate predicate)
noneSatisfy in interface IntIterablepublic int detectIfNone(IntPredicate predicate, int ifNone)
detectIfNone in interface IntIterablepublic long sum()
sum in interface IntIterablepublic int max()
max in interface IntIterablepublic int min()
min in interface IntIterablepublic int minIfEmpty(int defaultValue)
minIfEmpty in interface IntIterablepublic int maxIfEmpty(int defaultValue)
maxIfEmpty in interface IntIterablepublic double average()
average in interface IntIterablepublic double median()
median in interface IntIterablepublic MutableIntList toSortedList()
toSortedList in interface IntIterablepublic int[] toSortedArray()
toSortedArray in interface IntIterablepublic int[] toArray()
toArray in interface IntIterablepublic String toString()
PrimitiveIterabletoString in interface PrimitiveIterabletoString in class Objectpublic String makeString()
PrimitiveIterablePrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space).makeString in interface PrimitiveIterablepublic String makeString(String separator)
PrimitiveIterablePrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String).makeString in interface PrimitiveIterablepublic String makeString(String start, String separator, String end)
PrimitiveIterablemakeString in interface PrimitiveIterablepublic void appendString(Appendable appendable)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString().appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String separator)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String).appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String, String, String).appendString in interface PrimitiveIterablepublic MutableIntList toList()
toList in interface IntIterablepublic MutableIntSet toSet()
toSet in interface IntIterablepublic MutableIntBag toBag()
toBag in interface IntIterablepublic <T> T injectInto(T injectedValue,
ObjectIntToObjectFunction<? super T,? extends T> function)
injectInto in interface IntIterableCopyright © 2004–2016. All rights reserved.