@NotThreadSafe public final class UnmodifiableShortList extends AbstractUnmodifiableShortCollection implements com.gs.collections.api.list.primitive.MutableShortList
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAllAtIndex(int index,
short... source) |
boolean |
addAllAtIndex(int index,
com.gs.collections.api.ShortIterable source) |
void |
addAtIndex(int index,
short element) |
com.gs.collections.api.LazyShortIterable |
asLazy() |
com.gs.collections.api.list.primitive.MutableShortList |
asSynchronized() |
com.gs.collections.api.list.primitive.MutableShortList |
asUnmodifiable() |
<V> com.gs.collections.api.list.MutableList<V> |
collect(com.gs.collections.api.block.function.primitive.ShortToObjectFunction<? extends V> function) |
long |
dotProduct(com.gs.collections.api.list.primitive.ShortList list) |
boolean |
equals(java.lang.Object otherList)
Follows the same general contract as
List.equals(Object). |
short |
get(int index) |
short |
getFirst() |
short |
getLast() |
int |
hashCode()
Follows the same general contract as
List.hashCode(). |
int |
indexOf(short value) |
int |
lastIndexOf(short value) |
com.gs.collections.api.list.primitive.MutableShortList |
reject(com.gs.collections.api.block.predicate.primitive.ShortPredicate predicate) |
short |
removeAtIndex(int index) |
com.gs.collections.api.list.primitive.MutableShortList |
reverseThis() |
com.gs.collections.api.list.primitive.MutableShortList |
select(com.gs.collections.api.block.predicate.primitive.ShortPredicate predicate) |
short |
set(int index,
short element) |
com.gs.collections.api.list.primitive.MutableShortList |
sortThis()
Sorts this list mutating its contents and returns the same mutable list (this).
|
com.gs.collections.api.list.primitive.ImmutableShortList |
toImmutable()
Returns an immutable copy of this list.
|
com.gs.collections.api.list.primitive.MutableShortList |
toReversed() |
UnmodifiableShortList |
with(short element) |
UnmodifiableShortList |
withAll(com.gs.collections.api.ShortIterable elements) |
UnmodifiableShortList |
without(short element) |
UnmodifiableShortList |
withoutAll(com.gs.collections.api.ShortIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, clear, contains, containsAll, containsAll, count, detectIfNone, forEach, getShortCollection, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, shortIterator, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, addAll, clear, remove, removeAll, removeAllallSatisfy, anySatisfy, average, contains, containsAll, containsAll, count, detectIfNone, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, shortIterator, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListpublic short get(int index)
get in interface com.gs.collections.api.list.primitive.ShortListpublic short getFirst()
getFirst in interface com.gs.collections.api.list.primitive.ShortListpublic short getLast()
getLast in interface com.gs.collections.api.list.primitive.ShortListpublic int indexOf(short value)
indexOf in interface com.gs.collections.api.list.primitive.ShortListpublic int lastIndexOf(short value)
lastIndexOf in interface com.gs.collections.api.list.primitive.ShortListpublic void addAtIndex(int index,
short element)
addAtIndex in interface com.gs.collections.api.list.primitive.MutableShortListpublic boolean addAllAtIndex(int index,
short... source)
addAllAtIndex in interface com.gs.collections.api.list.primitive.MutableShortListpublic boolean addAllAtIndex(int index,
com.gs.collections.api.ShortIterable source)
addAllAtIndex in interface com.gs.collections.api.list.primitive.MutableShortListpublic short removeAtIndex(int index)
removeAtIndex in interface com.gs.collections.api.list.primitive.MutableShortListpublic short set(int index,
short element)
set in interface com.gs.collections.api.list.primitive.MutableShortListpublic UnmodifiableShortList with(short element)
with in interface com.gs.collections.api.collection.primitive.MutableShortCollectionwith in interface com.gs.collections.api.list.primitive.MutableShortListwith in class AbstractUnmodifiableShortCollectionpublic UnmodifiableShortList without(short element)
without in interface com.gs.collections.api.collection.primitive.MutableShortCollectionwithout in interface com.gs.collections.api.list.primitive.MutableShortListwithout in class AbstractUnmodifiableShortCollectionpublic UnmodifiableShortList withAll(com.gs.collections.api.ShortIterable elements)
withAll in interface com.gs.collections.api.collection.primitive.MutableShortCollectionwithAll in interface com.gs.collections.api.list.primitive.MutableShortListwithAll in class AbstractUnmodifiableShortCollectionpublic UnmodifiableShortList withoutAll(com.gs.collections.api.ShortIterable elements)
withoutAll in interface com.gs.collections.api.collection.primitive.MutableShortCollectionwithoutAll in interface com.gs.collections.api.list.primitive.MutableShortListwithoutAll in class AbstractUnmodifiableShortCollectionpublic com.gs.collections.api.list.primitive.MutableShortList select(com.gs.collections.api.block.predicate.primitive.ShortPredicate predicate)
select in interface com.gs.collections.api.collection.primitive.MutableShortCollectionselect in interface com.gs.collections.api.list.primitive.MutableShortListselect in interface com.gs.collections.api.list.primitive.ShortListselect in interface com.gs.collections.api.ShortIterableselect in class AbstractUnmodifiableShortCollectionpublic com.gs.collections.api.list.primitive.MutableShortList reject(com.gs.collections.api.block.predicate.primitive.ShortPredicate predicate)
reject in interface com.gs.collections.api.collection.primitive.MutableShortCollectionreject in interface com.gs.collections.api.list.primitive.MutableShortListreject in interface com.gs.collections.api.list.primitive.ShortListreject in interface com.gs.collections.api.ShortIterablereject in class AbstractUnmodifiableShortCollectionpublic <V> com.gs.collections.api.list.MutableList<V> collect(com.gs.collections.api.block.function.primitive.ShortToObjectFunction<? extends V> function)
collect in interface com.gs.collections.api.collection.primitive.MutableShortCollectioncollect in interface com.gs.collections.api.list.primitive.MutableShortListcollect in interface com.gs.collections.api.list.primitive.ShortListcollect in interface com.gs.collections.api.ShortIterablecollect in class AbstractUnmodifiableShortCollectionpublic com.gs.collections.api.list.primitive.MutableShortList sortThis()
com.gs.collections.api.list.primitive.MutableShortListsortThis in interface com.gs.collections.api.list.primitive.MutableShortListpublic long dotProduct(com.gs.collections.api.list.primitive.ShortList list)
dotProduct in interface com.gs.collections.api.list.primitive.ShortListpublic boolean equals(java.lang.Object otherList)
com.gs.collections.api.list.primitive.ShortListList.equals(Object).equals in interface com.gs.collections.api.list.primitive.ShortListequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.list.primitive.ShortListList.hashCode().hashCode in interface com.gs.collections.api.list.primitive.ShortListhashCode in class java.lang.Objectpublic com.gs.collections.api.LazyShortIterable asLazy()
asLazy in interface com.gs.collections.api.ShortIterableasLazy in class AbstractUnmodifiableShortCollectionpublic com.gs.collections.api.list.primitive.MutableShortList asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.collection.primitive.MutableShortCollectionasUnmodifiable in interface com.gs.collections.api.list.primitive.MutableShortListasUnmodifiable in class AbstractUnmodifiableShortCollectionpublic com.gs.collections.api.list.primitive.MutableShortList asSynchronized()
asSynchronized in interface com.gs.collections.api.collection.primitive.MutableShortCollectionasSynchronized in interface com.gs.collections.api.list.primitive.MutableShortListasSynchronized in class AbstractUnmodifiableShortCollectionpublic com.gs.collections.api.list.primitive.ImmutableShortList toImmutable()
com.gs.collections.api.list.primitive.MutableShortListtoImmutable in interface com.gs.collections.api.collection.primitive.MutableShortCollectiontoImmutable in interface com.gs.collections.api.list.primitive.MutableShortListtoImmutable in interface com.gs.collections.api.list.primitive.ShortListtoImmutable in class AbstractUnmodifiableShortCollectionpublic com.gs.collections.api.list.primitive.MutableShortList reverseThis()
reverseThis in interface com.gs.collections.api.list.primitive.MutableShortListpublic com.gs.collections.api.list.primitive.MutableShortList toReversed()
toReversed in interface com.gs.collections.api.list.primitive.MutableShortList