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:
- Serialized Form
-
-
Method Summary
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods 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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.collection.primitive.MutableLongCollection
newEmpty, tap
-
-
-
-
Method Detail
-
size
public int size()
- Specified by:
size
in interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()
- Specified by:
notEmpty
in interfacePrimitiveIterable
-
clear
public void clear()
- Specified by:
clear
in interfaceMutableLongCollection
-
contains
public boolean contains(long value)
- Specified by:
contains
in interfaceLongIterable
-
containsAll
public boolean containsAll(long... source)
- Specified by:
containsAll
in interfaceLongIterable
-
containsAll
public boolean containsAll(LongIterable source)
- Specified by:
containsAll
in interfaceLongIterable
-
containsAny
public boolean containsAny(long... source)
- Specified by:
containsAny
in interfaceLongIterable
-
containsAny
public boolean containsAny(LongIterable source)
- Specified by:
containsAny
in interfaceLongIterable
-
containsNone
public boolean containsNone(long... source)
- Specified by:
containsNone
in interfaceLongIterable
-
containsNone
public boolean containsNone(LongIterable source)
- Specified by:
containsNone
in interfaceLongIterable
-
add
public boolean add(long newItem)
- Specified by:
add
in interfaceMutableLongCollection
-
addAll
public boolean addAll(long... source)
- Specified by:
addAll
in interfaceMutableLongCollection
-
addAll
public boolean addAll(LongIterable source)
- Specified by:
addAll
in interfaceMutableLongCollection
-
remove
public boolean remove(long value)
- Specified by:
remove
in interfaceMutableLongCollection
-
removeIf
public boolean removeIf(LongPredicate predicate)
- Specified by:
removeIf
in interfaceMutableLongCollection
- Since:
- 9.1
-
removeAll
public boolean removeAll(LongIterable source)
- Specified by:
removeAll
in interfaceMutableLongCollection
-
removeAll
public boolean removeAll(long... source)
- Specified by:
removeAll
in interfaceMutableLongCollection
-
retainAll
public boolean retainAll(LongIterable source)
- Specified by:
retainAll
in interfaceMutableLongCollection
-
retainAll
public boolean retainAll(long... source)
- Specified by:
retainAll
in interfaceMutableLongCollection
-
longIterator
public MutableLongIterator longIterator()
- Specified by:
longIterator
in interfaceLongIterable
- Specified by:
longIterator
in interfaceMutableLongCollection
-
each
public void each(LongProcedure procedure)
- Specified by:
each
in interfaceLongIterable
- Since:
- 7.0.
-
count
public int count(LongPredicate predicate)
- Specified by:
count
in interfaceLongIterable
-
anySatisfy
public boolean anySatisfy(LongPredicate predicate)
- Specified by:
anySatisfy
in interfaceLongIterable
-
allSatisfy
public boolean allSatisfy(LongPredicate predicate)
- Specified by:
allSatisfy
in interfaceLongIterable
-
noneSatisfy
public boolean noneSatisfy(LongPredicate predicate)
- Specified by:
noneSatisfy
in interfaceLongIterable
-
select
public MutableLongCollection select(LongPredicate predicate)
- Specified by:
select
in interfaceLongIterable
- Specified by:
select
in interfaceMutableLongCollection
-
reject
public MutableLongCollection reject(LongPredicate predicate)
- Specified by:
reject
in interfaceLongIterable
- Specified by:
reject
in interfaceMutableLongCollection
-
collect
public <V> MutableCollection<V> collect(LongToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceLongIterable
- Specified by:
collect
in interfaceMutableLongCollection
-
with
public MutableLongCollection with(long element)
- Specified by:
with
in interfaceMutableLongCollection
-
without
public MutableLongCollection without(long element)
- Specified by:
without
in interfaceMutableLongCollection
-
withAll
public MutableLongCollection withAll(LongIterable elements)
- Specified by:
withAll
in interfaceMutableLongCollection
-
withoutAll
public MutableLongCollection withoutAll(LongIterable elements)
- Specified by:
withoutAll
in interfaceMutableLongCollection
-
asUnmodifiable
public MutableLongCollection asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableLongCollection
-
asSynchronized
public MutableLongCollection asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableLongCollection
-
toImmutable
public ImmutableLongCollection toImmutable()
- Specified by:
toImmutable
in interfaceMutableLongCollection
-
asLazy
public LazyLongIterable asLazy()
- Specified by:
asLazy
in interfaceLongIterable
-
detectIfNone
public long detectIfNone(LongPredicate predicate, long ifNone)
- Specified by:
detectIfNone
in interfaceLongIterable
-
sum
public long sum()
- Specified by:
sum
in interfaceLongIterable
-
max
public long max()
- Specified by:
max
in interfaceLongIterable
-
min
public long min()
- Specified by:
min
in interfaceLongIterable
-
minIfEmpty
public long minIfEmpty(long defaultValue)
- Specified by:
minIfEmpty
in interfaceLongIterable
-
maxIfEmpty
public long maxIfEmpty(long defaultValue)
- Specified by:
maxIfEmpty
in interfaceLongIterable
-
average
public double average()
- Specified by:
average
in interfaceLongIterable
-
median
public double median()
- Specified by:
median
in interfaceLongIterable
-
toSortedList
public MutableLongList toSortedList()
- Specified by:
toSortedList
in interfaceLongIterable
-
toSortedArray
public long[] toSortedArray()
- Specified by:
toSortedArray
in interfaceLongIterable
-
toArray
public long[] toArray()
- Specified by:
toArray
in interfaceLongIterable
-
toArray
public long[] toArray(long[] target)
- Specified by:
toArray
in interfaceLongIterable
-
toString
public String toString()
- Specified by:
toString
in interfacePrimitiveIterable
- Overrides:
toString
in classObject
-
makeString
public String makeString()
- Specified by:
makeString
in interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeString
in interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendString
in interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendString
in interfacePrimitiveIterable
-
toList
public MutableLongList toList()
- Specified by:
toList
in interfaceLongIterable
-
toSet
public MutableLongSet toSet()
- Specified by:
toSet
in interfaceLongIterable
-
toBag
public MutableLongBag toBag()
- Specified by:
toBag
in interfaceLongIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectLongToObjectFunction<? super T,? extends T> function)
- Specified by:
injectInto
in interfaceLongIterable
-
reduce
public long reduce(LongLongToLongFunction accumulator)
- Specified by:
reduce
in interfaceLongIterable
-
reduceIfEmpty
public long reduceIfEmpty(LongLongToLongFunction accumulator, long defaultValue)
- Specified by:
reduceIfEmpty
in interfaceLongIterable
-
chunk
public RichIterable<LongIterable> chunk(int size)
- Specified by:
chunk
in interfaceLongIterable
-
-