MutableLongCollection, LongList, MutableLongList, LongIterable, OrderedLongIterable, ReversibleLongIterable, PrimitiveIterablepublic final class UnmodifiableLongList extends AbstractUnmodifiableLongCollection implements MutableLongList
| Constructor | Description |
|---|---|
UnmodifiableLongList(MutableLongList list) |
| Modifier and Type | Method | 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) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
MutableLongList |
distinct() |
|
long |
dotProduct(LongList list) |
|
boolean |
equals(java.lang.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) |
Returns a new LongIterable with all of the elements in the LongIterable that
return false for the specified predicate.
|
long |
removeAtIndex(int index) |
|
MutableLongList |
reverseThis() |
|
MutableLongList |
select(LongPredicate predicate) |
Returns a new LongIterable with all of the elements in the LongIterable that
return true for the specified 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, toStringallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListadd, addAll, addAll, clear, longIterator, remove, removeAll, removeAll, retainAll, retainAlltapappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic UnmodifiableLongList(MutableLongList list)
public long getFirst()
getFirst in interface OrderedLongIterablepublic long getLast()
getLast in interface ReversibleLongIterablepublic int indexOf(long value)
indexOf in interface OrderedLongIterablepublic int lastIndexOf(long value)
lastIndexOf in interface LongListpublic void addAtIndex(int index,
long element)
addAtIndex in interface MutableLongListpublic boolean addAllAtIndex(int index,
long... source)
addAllAtIndex in interface MutableLongListpublic boolean addAllAtIndex(int index,
LongIterable source)
addAllAtIndex in interface MutableLongListpublic long removeAtIndex(int index)
removeAtIndex in interface MutableLongListpublic long set(int index,
long element)
set in interface MutableLongListpublic UnmodifiableLongList with(long element)
with in interface MutableLongCollectionwith in interface MutableLongListwith in class AbstractUnmodifiableLongCollectionpublic UnmodifiableLongList without(long element)
without in interface MutableLongCollectionwithout in interface MutableLongListwithout in class AbstractUnmodifiableLongCollectionpublic UnmodifiableLongList withAll(LongIterable elements)
withAll in interface MutableLongCollectionwithAll in interface MutableLongListwithAll in class AbstractUnmodifiableLongCollectionpublic UnmodifiableLongList withoutAll(LongIterable elements)
withoutAll in interface MutableLongCollectionwithoutAll in interface MutableLongListwithoutAll in class AbstractUnmodifiableLongCollectionpublic MutableLongList select(LongPredicate predicate)
LongIterableselect in interface LongIterableselect in interface LongListselect in interface MutableLongCollectionselect in interface MutableLongListselect in interface OrderedLongIterableselect in interface ReversibleLongIterableselect in class AbstractUnmodifiableLongCollectionpublic MutableLongList reject(LongPredicate predicate)
LongIterablereject in interface LongIterablereject in interface LongListreject in interface MutableLongCollectionreject in interface MutableLongListreject in interface OrderedLongIterablereject in interface ReversibleLongIterablereject in class AbstractUnmodifiableLongCollectionpublic <V> MutableList<V> collect(LongToObjectFunction<? extends V> function)
LongIterablecollect in interface LongIterablecollect in interface LongListcollect in interface MutableLongCollectioncollect in interface MutableLongListcollect in interface OrderedLongIterablecollect in interface ReversibleLongIterablecollect in class AbstractUnmodifiableLongCollectionpublic MutableLongList sortThis()
MutableLongListsortThis in interface MutableLongListpublic int binarySearch(long value)
binarySearch in interface LongListpublic long dotProduct(LongList list)
dotProduct in interface LongListpublic boolean equals(java.lang.Object otherList)
LongListList.equals(Object).public int hashCode()
LongListList.hashCode().public MutableLongList asUnmodifiable()
asUnmodifiable in interface MutableLongCollectionasUnmodifiable in interface MutableLongListasUnmodifiable in class AbstractUnmodifiableLongCollectionpublic MutableLongList asSynchronized()
asSynchronized in interface MutableLongCollectionasSynchronized in interface MutableLongListasSynchronized in class AbstractUnmodifiableLongCollectionpublic ImmutableLongList toImmutable()
MutableLongListtoImmutable in interface LongListtoImmutable in interface MutableLongCollectiontoImmutable in interface MutableLongListtoImmutable in class AbstractUnmodifiableLongCollectionpublic MutableLongList reverseThis()
reverseThis in interface MutableLongListpublic MutableLongList toReversed()
toReversed in interface LongListtoReversed in interface MutableLongListtoReversed in interface ReversibleLongIterablepublic void forEachWithIndex(LongIntProcedure procedure)
forEachWithIndex in interface OrderedLongIterablepublic LazyLongIterable asReversed()
asReversed in interface ReversibleLongIterablepublic <T> T injectIntoWithIndex(T injectedValue,
ObjectLongIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface OrderedLongIterableinjectIntoWithIndex in interface ReversibleLongIterablepublic MutableLongList distinct()
distinct in interface LongListdistinct in interface MutableLongListdistinct in interface ReversibleLongIterablepublic MutableLongList subList(int fromIndex, int toIndex)
subList in interface LongListsubList in interface MutableLongListList.subList(int fromIndex, int toIndex)Copyright © 2004–2017. All rights reserved.