@NotThreadSafe public final class UnmodifiableLongList extends AbstractUnmodifiableLongCollection implements com.gs.collections.api.list.primitive.MutableLongList
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAllAtIndex(int index,
long... source) |
boolean |
addAllAtIndex(int index,
com.gs.collections.api.LongIterable source) |
void |
addAtIndex(int index,
long element) |
com.gs.collections.api.LazyLongIterable |
asLazy() |
com.gs.collections.api.LazyLongIterable |
asReversed() |
com.gs.collections.api.list.primitive.MutableLongList |
asSynchronized() |
com.gs.collections.api.list.primitive.MutableLongList |
asUnmodifiable() |
<V> com.gs.collections.api.list.MutableList<V> |
collect(com.gs.collections.api.block.function.primitive.LongToObjectFunction<? extends V> function) |
long |
dotProduct(com.gs.collections.api.list.primitive.LongList list) |
boolean |
equals(java.lang.Object otherList)
Follows the same general contract as
List.equals(Object). |
void |
forEachWithIndex(com.gs.collections.api.block.procedure.primitive.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 |
injectInto(T injectedValue,
com.gs.collections.api.block.function.primitive.ObjectLongToObjectFunction<? super T,? extends T> function) |
<T> T |
injectIntoWithIndex(T injectedValue,
com.gs.collections.api.block.function.primitive.ObjectLongIntToObjectFunction<? super T,? extends T> function) |
int |
lastIndexOf(long value) |
com.gs.collections.api.list.primitive.MutableLongList |
reject(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate) |
long |
removeAtIndex(int index) |
com.gs.collections.api.list.primitive.MutableLongList |
reverseThis() |
com.gs.collections.api.list.primitive.MutableLongList |
select(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate) |
long |
set(int index,
long element) |
com.gs.collections.api.list.primitive.MutableLongList |
sortThis()
Sorts this list mutating its contents and returns the same mutable list (this).
|
com.gs.collections.api.list.primitive.MutableLongList |
subList(int fromIndex,
int toIndex) |
com.gs.collections.api.list.primitive.ImmutableLongList |
toImmutable()
Returns an immutable copy of this list.
|
com.gs.collections.api.list.primitive.MutableLongList |
toReversed() |
UnmodifiableLongList |
with(long element) |
UnmodifiableLongList |
withAll(com.gs.collections.api.LongIterable elements) |
UnmodifiableLongList |
without(long element) |
UnmodifiableLongList |
withoutAll(com.gs.collections.api.LongIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, clear, contains, containsAll, containsAll, count, detectIfNone, forEach, getLongCollection, 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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, addAll, clear, remove, removeAll, removeAll, retainAll, retainAllallSatisfy, anySatisfy, average, contains, containsAll, containsAll, count, detectIfNone, forEach, longIterator, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListpublic long get(int index)
get in interface com.gs.collections.api.list.primitive.LongListpublic long getFirst()
getFirst in interface com.gs.collections.api.ordered.primitive.ReversibleLongIterablepublic long getLast()
getLast in interface com.gs.collections.api.ordered.primitive.ReversibleLongIterablepublic int indexOf(long value)
indexOf in interface com.gs.collections.api.ordered.primitive.ReversibleLongIterablepublic int lastIndexOf(long value)
lastIndexOf in interface com.gs.collections.api.list.primitive.LongListpublic void addAtIndex(int index,
long element)
addAtIndex in interface com.gs.collections.api.list.primitive.MutableLongListpublic boolean addAllAtIndex(int index,
long... source)
addAllAtIndex in interface com.gs.collections.api.list.primitive.MutableLongListpublic boolean addAllAtIndex(int index,
com.gs.collections.api.LongIterable source)
addAllAtIndex in interface com.gs.collections.api.list.primitive.MutableLongListpublic long removeAtIndex(int index)
removeAtIndex in interface com.gs.collections.api.list.primitive.MutableLongListpublic long set(int index,
long element)
set in interface com.gs.collections.api.list.primitive.MutableLongListpublic UnmodifiableLongList with(long element)
with in interface com.gs.collections.api.collection.primitive.MutableLongCollectionwith in interface com.gs.collections.api.list.primitive.MutableLongListwith in class AbstractUnmodifiableLongCollectionpublic UnmodifiableLongList without(long element)
without in interface com.gs.collections.api.collection.primitive.MutableLongCollectionwithout in interface com.gs.collections.api.list.primitive.MutableLongListwithout in class AbstractUnmodifiableLongCollectionpublic UnmodifiableLongList withAll(com.gs.collections.api.LongIterable elements)
withAll in interface com.gs.collections.api.collection.primitive.MutableLongCollectionwithAll in interface com.gs.collections.api.list.primitive.MutableLongListwithAll in class AbstractUnmodifiableLongCollectionpublic UnmodifiableLongList withoutAll(com.gs.collections.api.LongIterable elements)
withoutAll in interface com.gs.collections.api.collection.primitive.MutableLongCollectionwithoutAll in interface com.gs.collections.api.list.primitive.MutableLongListwithoutAll in class AbstractUnmodifiableLongCollectionpublic com.gs.collections.api.list.primitive.MutableLongList select(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate)
select in interface com.gs.collections.api.collection.primitive.MutableLongCollectionselect in interface com.gs.collections.api.list.primitive.LongListselect in interface com.gs.collections.api.list.primitive.MutableLongListselect in interface com.gs.collections.api.LongIterableselect in interface com.gs.collections.api.ordered.primitive.ReversibleLongIterableselect in class AbstractUnmodifiableLongCollectionpublic com.gs.collections.api.list.primitive.MutableLongList reject(com.gs.collections.api.block.predicate.primitive.LongPredicate predicate)
reject in interface com.gs.collections.api.collection.primitive.MutableLongCollectionreject in interface com.gs.collections.api.list.primitive.LongListreject in interface com.gs.collections.api.list.primitive.MutableLongListreject in interface com.gs.collections.api.LongIterablereject in interface com.gs.collections.api.ordered.primitive.ReversibleLongIterablereject in class AbstractUnmodifiableLongCollectionpublic <V> com.gs.collections.api.list.MutableList<V> collect(com.gs.collections.api.block.function.primitive.LongToObjectFunction<? extends V> function)
collect in interface com.gs.collections.api.collection.primitive.MutableLongCollectioncollect in interface com.gs.collections.api.list.primitive.LongListcollect in interface com.gs.collections.api.list.primitive.MutableLongListcollect in interface com.gs.collections.api.LongIterablecollect in interface com.gs.collections.api.ordered.primitive.ReversibleLongIterablecollect in class AbstractUnmodifiableLongCollectionpublic com.gs.collections.api.list.primitive.MutableLongList sortThis()
com.gs.collections.api.list.primitive.MutableLongListsortThis in interface com.gs.collections.api.list.primitive.MutableLongListpublic long dotProduct(com.gs.collections.api.list.primitive.LongList list)
dotProduct in interface com.gs.collections.api.list.primitive.LongListpublic boolean equals(java.lang.Object otherList)
com.gs.collections.api.list.primitive.LongListList.equals(Object).equals in interface com.gs.collections.api.list.primitive.LongListequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.list.primitive.LongListList.hashCode().hashCode in interface com.gs.collections.api.list.primitive.LongListhashCode in class java.lang.Objectpublic com.gs.collections.api.LazyLongIterable asLazy()
asLazy in interface com.gs.collections.api.LongIterableasLazy in class AbstractUnmodifiableLongCollectionpublic com.gs.collections.api.list.primitive.MutableLongList asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.collection.primitive.MutableLongCollectionasUnmodifiable in interface com.gs.collections.api.list.primitive.MutableLongListasUnmodifiable in class AbstractUnmodifiableLongCollectionpublic com.gs.collections.api.list.primitive.MutableLongList asSynchronized()
asSynchronized in interface com.gs.collections.api.collection.primitive.MutableLongCollectionasSynchronized in interface com.gs.collections.api.list.primitive.MutableLongListasSynchronized in class AbstractUnmodifiableLongCollectionpublic com.gs.collections.api.list.primitive.ImmutableLongList toImmutable()
com.gs.collections.api.list.primitive.MutableLongListtoImmutable in interface com.gs.collections.api.collection.primitive.MutableLongCollectiontoImmutable in interface com.gs.collections.api.list.primitive.LongListtoImmutable in interface com.gs.collections.api.list.primitive.MutableLongListtoImmutable in class AbstractUnmodifiableLongCollectionpublic com.gs.collections.api.list.primitive.MutableLongList reverseThis()
reverseThis in interface com.gs.collections.api.list.primitive.MutableLongListpublic com.gs.collections.api.list.primitive.MutableLongList toReversed()
toReversed in interface com.gs.collections.api.list.primitive.LongListtoReversed in interface com.gs.collections.api.list.primitive.MutableLongListtoReversed in interface com.gs.collections.api.ordered.primitive.ReversibleLongIterablepublic void forEachWithIndex(com.gs.collections.api.block.procedure.primitive.LongIntProcedure procedure)
forEachWithIndex in interface com.gs.collections.api.ordered.primitive.ReversibleLongIterablepublic com.gs.collections.api.LazyLongIterable asReversed()
asReversed in interface com.gs.collections.api.ordered.primitive.ReversibleLongIterablepublic <T> T injectInto(T injectedValue,
com.gs.collections.api.block.function.primitive.ObjectLongToObjectFunction<? super T,? extends T> function)
injectInto in interface com.gs.collections.api.LongIterableinjectInto in class AbstractUnmodifiableLongCollectionpublic <T> T injectIntoWithIndex(T injectedValue,
com.gs.collections.api.block.function.primitive.ObjectLongIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface com.gs.collections.api.ordered.primitive.ReversibleLongIterablepublic com.gs.collections.api.list.primitive.MutableLongList subList(int fromIndex,
int toIndex)
subList in interface com.gs.collections.api.list.primitive.LongListsubList in interface com.gs.collections.api.list.primitive.MutableLongListList#subList(int fromIndex, int toIndex)}