@ThreadSafe public abstract class AbstractSynchronizedLongCollection extends Object implements org.eclipse.collections.api.collection.primitive.MutableLongCollection, Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(long newItem) |
boolean |
addAll(long... source) |
boolean |
addAll(org.eclipse.collections.api.LongIterable source) |
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate) |
void |
appendString(Appendable appendable) |
void |
appendString(Appendable appendable,
String separator) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
org.eclipse.collections.api.LazyLongIterable |
asLazy() |
org.eclipse.collections.api.collection.primitive.MutableLongCollection |
asSynchronized() |
org.eclipse.collections.api.collection.primitive.MutableLongCollection |
asUnmodifiable() |
double |
average() |
void |
clear() |
<V> org.eclipse.collections.api.collection.MutableCollection<V> |
collect(org.eclipse.collections.api.block.function.primitive.LongToObjectFunction<? extends V> function) |
boolean |
contains(long value) |
boolean |
containsAll(long... source) |
boolean |
containsAll(org.eclipse.collections.api.LongIterable source) |
int |
count(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate) |
long |
detectIfNone(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate,
long ifNone) |
void |
each(org.eclipse.collections.api.block.procedure.primitive.LongProcedure procedure) |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.LongProcedure procedure) |
<T> T |
injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectLongToObjectFunction<? super T,? extends T> function) |
boolean |
isEmpty() |
org.eclipse.collections.api.iterator.MutableLongIterator |
longIterator()
Must be called in a synchronized block.
|
String |
makeString() |
String |
makeString(String separator) |
String |
makeString(String start,
String separator,
String end) |
long |
max() |
long |
maxIfEmpty(long defaultValue) |
double |
median() |
long |
min() |
long |
minIfEmpty(long defaultValue) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate) |
boolean |
notEmpty() |
org.eclipse.collections.api.collection.primitive.MutableLongCollection |
reject(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate) |
boolean |
remove(long value) |
boolean |
removeAll(long... source) |
boolean |
removeAll(org.eclipse.collections.api.LongIterable source) |
boolean |
retainAll(long... source) |
boolean |
retainAll(org.eclipse.collections.api.LongIterable source) |
org.eclipse.collections.api.collection.primitive.MutableLongCollection |
select(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate) |
int |
size() |
long |
sum() |
long[] |
toArray() |
org.eclipse.collections.api.bag.primitive.MutableLongBag |
toBag() |
org.eclipse.collections.api.collection.primitive.ImmutableLongCollection |
toImmutable() |
org.eclipse.collections.api.list.primitive.MutableLongList |
toList() |
org.eclipse.collections.api.set.primitive.MutableLongSet |
toSet() |
long[] |
toSortedArray() |
org.eclipse.collections.api.list.primitive.MutableLongList |
toSortedList() |
String |
toString() |
org.eclipse.collections.api.collection.primitive.MutableLongCollection |
with(long element) |
org.eclipse.collections.api.collection.primitive.MutableLongCollection |
withAll(org.eclipse.collections.api.LongIterable elements) |
org.eclipse.collections.api.collection.primitive.MutableLongCollection |
without(long element) |
org.eclipse.collections.api.collection.primitive.MutableLongCollection |
withoutAll(org.eclipse.collections.api.LongIterable elements) |
public int size()
size in interface org.eclipse.collections.api.PrimitiveIterablepublic boolean isEmpty()
isEmpty in interface org.eclipse.collections.api.PrimitiveIterablepublic boolean notEmpty()
notEmpty in interface org.eclipse.collections.api.PrimitiveIterablepublic void clear()
clear in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic org.eclipse.collections.api.collection.primitive.MutableLongCollection select(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
select in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionselect in interface org.eclipse.collections.api.LongIterablepublic org.eclipse.collections.api.collection.primitive.MutableLongCollection reject(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
reject in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionreject in interface org.eclipse.collections.api.LongIterablepublic <V> org.eclipse.collections.api.collection.MutableCollection<V> collect(org.eclipse.collections.api.block.function.primitive.LongToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectioncollect in interface org.eclipse.collections.api.LongIterablepublic org.eclipse.collections.api.collection.primitive.MutableLongCollection with(long element)
with in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic org.eclipse.collections.api.collection.primitive.MutableLongCollection without(long element)
without in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic org.eclipse.collections.api.collection.primitive.MutableLongCollection withAll(org.eclipse.collections.api.LongIterable elements)
withAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic org.eclipse.collections.api.collection.primitive.MutableLongCollection withoutAll(org.eclipse.collections.api.LongIterable elements)
withoutAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic org.eclipse.collections.api.collection.primitive.MutableLongCollection asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic org.eclipse.collections.api.collection.primitive.MutableLongCollection asSynchronized()
asSynchronized in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic org.eclipse.collections.api.collection.primitive.ImmutableLongCollection toImmutable()
toImmutable in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic org.eclipse.collections.api.LazyLongIterable asLazy()
asLazy in interface org.eclipse.collections.api.LongIterablepublic boolean contains(long value)
contains in interface org.eclipse.collections.api.LongIterablepublic boolean containsAll(long... source)
containsAll in interface org.eclipse.collections.api.LongIterablepublic boolean containsAll(org.eclipse.collections.api.LongIterable source)
containsAll in interface org.eclipse.collections.api.LongIterablepublic boolean add(long newItem)
add in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic boolean addAll(long... source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic boolean addAll(org.eclipse.collections.api.LongIterable source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic boolean remove(long value)
remove in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic boolean removeAll(org.eclipse.collections.api.LongIterable source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic boolean removeAll(long... source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic boolean retainAll(org.eclipse.collections.api.LongIterable source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic boolean retainAll(long... source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionpublic org.eclipse.collections.api.iterator.MutableLongIterator longIterator()
longIterator in interface org.eclipse.collections.api.collection.primitive.MutableLongCollectionlongIterator in interface org.eclipse.collections.api.LongIterablepublic void forEach(org.eclipse.collections.api.block.procedure.primitive.LongProcedure procedure)
forEach in interface org.eclipse.collections.api.LongIterablepublic void each(org.eclipse.collections.api.block.procedure.primitive.LongProcedure procedure)
each in interface org.eclipse.collections.api.LongIterablepublic int count(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
count in interface org.eclipse.collections.api.LongIterablepublic boolean anySatisfy(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
anySatisfy in interface org.eclipse.collections.api.LongIterablepublic boolean allSatisfy(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
allSatisfy in interface org.eclipse.collections.api.LongIterablepublic boolean noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate)
noneSatisfy in interface org.eclipse.collections.api.LongIterablepublic long detectIfNone(org.eclipse.collections.api.block.predicate.primitive.LongPredicate predicate,
long ifNone)
detectIfNone in interface org.eclipse.collections.api.LongIterablepublic long sum()
sum in interface org.eclipse.collections.api.LongIterablepublic long max()
max in interface org.eclipse.collections.api.LongIterablepublic long min()
min in interface org.eclipse.collections.api.LongIterablepublic long minIfEmpty(long defaultValue)
minIfEmpty in interface org.eclipse.collections.api.LongIterablepublic long maxIfEmpty(long defaultValue)
maxIfEmpty in interface org.eclipse.collections.api.LongIterablepublic double average()
average in interface org.eclipse.collections.api.LongIterablepublic double median()
median in interface org.eclipse.collections.api.LongIterablepublic org.eclipse.collections.api.list.primitive.MutableLongList toSortedList()
toSortedList in interface org.eclipse.collections.api.LongIterablepublic long[] toSortedArray()
toSortedArray in interface org.eclipse.collections.api.LongIterablepublic long[] toArray()
toArray in interface org.eclipse.collections.api.LongIterablepublic String toString()
public String makeString()
makeString in interface org.eclipse.collections.api.PrimitiveIterablepublic String makeString(String separator)
makeString in interface org.eclipse.collections.api.PrimitiveIterablepublic String makeString(String start, String separator, String end)
makeString in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable, String separator)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic org.eclipse.collections.api.list.primitive.MutableLongList toList()
toList in interface org.eclipse.collections.api.LongIterablepublic org.eclipse.collections.api.set.primitive.MutableLongSet toSet()
toSet in interface org.eclipse.collections.api.LongIterablepublic org.eclipse.collections.api.bag.primitive.MutableLongBag toBag()
toBag in interface org.eclipse.collections.api.LongIterablepublic <T> T injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectLongToObjectFunction<? super T,? extends T> function)
injectInto in interface org.eclipse.collections.api.LongIterableCopyright © 2004–2017. All rights reserved.