Class AbstractUnmodifiableLongCollection
java.lang.Object
org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableLongCollection
- All Implemented Interfaces:
Serializable,MutableLongCollection,LongIterable,PrimitiveIterable
- Direct Known Subclasses:
UnmodifiableLongBag,UnmodifiableLongCollection,UnmodifiableLongList,UnmodifiableLongSet
public abstract class AbstractUnmodifiableLongCollection
extends Object
implements MutableLongCollection, Serializable
This file was automatically generated from template file abstractUnmodifiablePrimitiveCollection.stg.
- Since:
- 3.1.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(long newItem) booleanaddAll(long... source) booleanaddAll(LongIterable source) booleanallSatisfy(LongPredicate predicate) booleananySatisfy(LongPredicate predicate) voidappendString(Appendable appendable) voidappendString(Appendable appendable, String separator) voidappendString(Appendable appendable, String start, String separator, String end) asLazy()doubleaverage()chunk(int size) voidclear()<V> MutableCollection<V>collect(LongToObjectFunction<? extends V> function) booleancontains(long value) booleancontainsAll(long... source) booleancontainsAll(LongIterable source) booleancontainsAny(long... source) booleancontainsAny(LongIterable source) booleancontainsNone(long... source) booleancontainsNone(LongIterable source) intcount(LongPredicate predicate) longdetectIfNone(LongPredicate predicate, long ifNone) voideach(LongProcedure procedure) <T> TinjectInto(T injectedValue, ObjectLongToObjectFunction<? super T, ? extends T> function) booleanisEmpty()makeString(String separator) makeString(String start, String separator, String end) longmax()longmaxIfEmpty(long defaultValue) doublemedian()longmin()longminIfEmpty(long defaultValue) booleannoneSatisfy(LongPredicate predicate) booleannotEmpty()longreduce(LongLongToLongFunction accumulator) longreduceIfEmpty(LongLongToLongFunction accumulator, long defaultValue) reject(LongPredicate predicate) booleanremove(long value) booleanremoveAll(long... source) booleanremoveAll(LongIterable source) booleanremoveIf(LongPredicate predicate) booleanretainAll(long... source) booleanretainAll(LongIterable source) select(LongPredicate predicate) intsize()longsum()long[]toArray()long[]toArray(long[] target) toBag()toList()toSet()long[]toString()with(long element) withAll(LongIterable elements) without(long element) withoutAll(LongIterable elements) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.collections.api.LongIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reject, select, summaryStatistics, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.collection.primitive.MutableLongCollection
newEmpty, tap
-
Method Details
-
size
public int size()- Specified by:
sizein interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableLongCollection
-
contains
public boolean contains(long value) - Specified by:
containsin interfaceLongIterable
-
containsAll
public boolean containsAll(long... source) - Specified by:
containsAllin interfaceLongIterable
-
containsAll
- Specified by:
containsAllin interfaceLongIterable
-
containsAny
public boolean containsAny(long... source) - Specified by:
containsAnyin interfaceLongIterable
-
containsAny
- Specified by:
containsAnyin interfaceLongIterable
-
containsNone
public boolean containsNone(long... source) - Specified by:
containsNonein interfaceLongIterable
-
containsNone
- Specified by:
containsNonein interfaceLongIterable
-
add
public boolean add(long newItem) - Specified by:
addin interfaceMutableLongCollection
-
addAll
public boolean addAll(long... source) - Specified by:
addAllin interfaceMutableLongCollection
-
addAll
- Specified by:
addAllin interfaceMutableLongCollection
-
remove
public boolean remove(long value) - Specified by:
removein interfaceMutableLongCollection
-
removeIf
- Specified by:
removeIfin interfaceMutableLongCollection- Since:
- 9.1
-
removeAll
- Specified by:
removeAllin interfaceMutableLongCollection
-
removeAll
public boolean removeAll(long... source) - Specified by:
removeAllin interfaceMutableLongCollection
-
retainAll
- Specified by:
retainAllin interfaceMutableLongCollection
-
retainAll
public boolean retainAll(long... source) - Specified by:
retainAllin interfaceMutableLongCollection
-
longIterator
- Specified by:
longIteratorin interfaceLongIterable- Specified by:
longIteratorin interfaceMutableLongCollection
-
each
- Specified by:
eachin interfaceLongIterable- Since:
- 7.0.
-
count
- Specified by:
countin interfaceLongIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceLongIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceLongIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceLongIterable
-
select
- Specified by:
selectin interfaceLongIterable- Specified by:
selectin interfaceMutableLongCollection
-
reject
- Specified by:
rejectin interfaceLongIterable- Specified by:
rejectin interfaceMutableLongCollection
-
collect
- Specified by:
collectin interfaceLongIterable- Specified by:
collectin interfaceMutableLongCollection
-
with
- Specified by:
within interfaceMutableLongCollection
-
without
- Specified by:
withoutin interfaceMutableLongCollection
-
withAll
- Specified by:
withAllin interfaceMutableLongCollection
-
withoutAll
- Specified by:
withoutAllin interfaceMutableLongCollection
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableLongCollection
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableLongCollection
-
toImmutable
- Specified by:
toImmutablein interfaceMutableLongCollection
-
asLazy
- Specified by:
asLazyin interfaceLongIterable
-
detectIfNone
- Specified by:
detectIfNonein interfaceLongIterable
-
sum
public long sum()- Specified by:
sumin interfaceLongIterable
-
max
public long max()- Specified by:
maxin interfaceLongIterable
-
min
public long min()- Specified by:
minin interfaceLongIterable
-
minIfEmpty
public long minIfEmpty(long defaultValue) - Specified by:
minIfEmptyin interfaceLongIterable
-
maxIfEmpty
public long maxIfEmpty(long defaultValue) - Specified by:
maxIfEmptyin interfaceLongIterable
-
average
public double average()- Specified by:
averagein interfaceLongIterable
-
median
public double median()- Specified by:
medianin interfaceLongIterable
-
toSortedList
- Specified by:
toSortedListin interfaceLongIterable
-
toSortedArray
public long[] toSortedArray()- Specified by:
toSortedArrayin interfaceLongIterable
-
toArray
public long[] toArray()- Specified by:
toArrayin interfaceLongIterable
-
toArray
public long[] toArray(long[] target) - Specified by:
toArrayin interfaceLongIterable
-
toString
- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
toList
- Specified by:
toListin interfaceLongIterable
-
toSet
- Specified by:
toSetin interfaceLongIterable
-
toBag
- Specified by:
toBagin interfaceLongIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectLongToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoin interfaceLongIterable
-
reduce
- Specified by:
reducein interfaceLongIterable
-
reduceIfEmpty
- Specified by:
reduceIfEmptyin interfaceLongIterable
-
chunk
- Specified by:
chunkin interfaceLongIterable
-