@NotThreadSafe public final class UnmodifiableLongList extends AbstractUnmodifiableLongCollection implements MutableLongList
Modifier and Type | Method and Description |
---|---|
boolean |
addAllAtIndex(int index,
long... source) |
boolean |
addAllAtIndex(int index,
LongIterable source) |
void |
addAtIndex(int index,
long element) |
LazyLongIterable |
asReversed() |
MutableLongList |
asSynchronized() |
MutableLongList |
asUnmodifiable() |
int |
binarySearch(long value) |
<V> MutableList<V> |
collect(LongToObjectFunction<? extends V> function) |
MutableLongList |
distinct() |
long |
dotProduct(LongList list) |
boolean |
equals(Object otherList)
Follows the same general contract as
List.equals(Object) . |
void |
forEachWithIndex(LongIntProcedure procedure) |
long |
get(int index) |
long |
getFirst() |
long |
getLast() |
int |
hashCode()
Follows the same general contract as
List.hashCode() . |
int |
indexOf(long value) |
<T> T |
injectIntoWithIndex(T injectedValue,
ObjectLongIntToObjectFunction<? super T,? extends T> function) |
int |
lastIndexOf(long value) |
MutableLongList |
reject(LongPredicate predicate) |
long |
removeAtIndex(int index) |
MutableLongList |
reverseThis() |
MutableLongList |
select(LongPredicate predicate) |
long |
set(int index,
long element) |
MutableLongList |
sortThis()
Sorts this list mutating its contents and returns the same mutable list (this).
|
MutableLongList |
subList(int fromIndex,
int toIndex) |
ImmutableLongList |
toImmutable()
Returns an immutable copy of this list.
|
MutableLongList |
toReversed() |
UnmodifiableLongList |
with(long element) |
UnmodifiableLongList |
withAll(LongIterable elements) |
UnmodifiableLongList |
without(long element) |
UnmodifiableLongList |
withoutAll(LongIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, isEmpty, longIterator, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toString
add, addAll, addAll, clear, longIterator, remove, removeAll, removeAll, retainAll, retainAll
allSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public long getFirst()
getFirst
in interface OrderedLongIterable
public long getLast()
getLast
in interface ReversibleLongIterable
public int indexOf(long value)
indexOf
in interface OrderedLongIterable
public int lastIndexOf(long value)
lastIndexOf
in interface LongList
public void addAtIndex(int index, long element)
addAtIndex
in interface MutableLongList
public boolean addAllAtIndex(int index, long... source)
addAllAtIndex
in interface MutableLongList
public boolean addAllAtIndex(int index, LongIterable source)
addAllAtIndex
in interface MutableLongList
public long removeAtIndex(int index)
removeAtIndex
in interface MutableLongList
public long set(int index, long element)
set
in interface MutableLongList
public UnmodifiableLongList with(long element)
with
in interface MutableLongCollection
with
in interface MutableLongList
with
in class AbstractUnmodifiableLongCollection
public UnmodifiableLongList without(long element)
without
in interface MutableLongCollection
without
in interface MutableLongList
without
in class AbstractUnmodifiableLongCollection
public UnmodifiableLongList withAll(LongIterable elements)
withAll
in interface MutableLongCollection
withAll
in interface MutableLongList
withAll
in class AbstractUnmodifiableLongCollection
public UnmodifiableLongList withoutAll(LongIterable elements)
withoutAll
in interface MutableLongCollection
withoutAll
in interface MutableLongList
withoutAll
in class AbstractUnmodifiableLongCollection
public MutableLongList select(LongPredicate predicate)
select
in interface MutableLongCollection
select
in interface LongList
select
in interface MutableLongList
select
in interface LongIterable
select
in interface OrderedLongIterable
select
in interface ReversibleLongIterable
select
in class AbstractUnmodifiableLongCollection
public MutableLongList reject(LongPredicate predicate)
reject
in interface MutableLongCollection
reject
in interface LongList
reject
in interface MutableLongList
reject
in interface LongIterable
reject
in interface OrderedLongIterable
reject
in interface ReversibleLongIterable
reject
in class AbstractUnmodifiableLongCollection
public <V> MutableList<V> collect(LongToObjectFunction<? extends V> function)
collect
in interface MutableLongCollection
collect
in interface LongList
collect
in interface MutableLongList
collect
in interface LongIterable
collect
in interface OrderedLongIterable
collect
in interface ReversibleLongIterable
collect
in class AbstractUnmodifiableLongCollection
public MutableLongList sortThis()
MutableLongList
sortThis
in interface MutableLongList
public int binarySearch(long value)
binarySearch
in interface LongList
public long dotProduct(LongList list)
dotProduct
in interface LongList
public boolean equals(Object otherList)
LongList
List.equals(Object)
.public int hashCode()
LongList
List.hashCode()
.public MutableLongList asUnmodifiable()
asUnmodifiable
in interface MutableLongCollection
asUnmodifiable
in interface MutableLongList
asUnmodifiable
in class AbstractUnmodifiableLongCollection
public MutableLongList asSynchronized()
asSynchronized
in interface MutableLongCollection
asSynchronized
in interface MutableLongList
asSynchronized
in class AbstractUnmodifiableLongCollection
public ImmutableLongList toImmutable()
MutableLongList
toImmutable
in interface MutableLongCollection
toImmutable
in interface LongList
toImmutable
in interface MutableLongList
toImmutable
in class AbstractUnmodifiableLongCollection
public MutableLongList reverseThis()
reverseThis
in interface MutableLongList
public MutableLongList toReversed()
toReversed
in interface LongList
toReversed
in interface MutableLongList
toReversed
in interface ReversibleLongIterable
public void forEachWithIndex(LongIntProcedure procedure)
forEachWithIndex
in interface OrderedLongIterable
public LazyLongIterable asReversed()
asReversed
in interface ReversibleLongIterable
public <T> T injectIntoWithIndex(T injectedValue, ObjectLongIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex
in interface OrderedLongIterable
injectIntoWithIndex
in interface ReversibleLongIterable
public MutableLongList distinct()
distinct
in interface LongList
distinct
in interface MutableLongList
distinct
in interface ReversibleLongIterable
public MutableLongList subList(int fromIndex, int toIndex)
subList
in interface LongList
subList
in interface MutableLongList
List#subList(int fromIndex, int toIndex)}
Copyright © 2004–2016. All rights reserved.