@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 |
asReversed() |
com.gs.collections.api.list.primitive.MutableShortList |
asSynchronized() |
com.gs.collections.api.list.primitive.MutableShortList |
asUnmodifiable() |
int |
binarySearch(short value) |
<V> com.gs.collections.api.list.MutableList<V> |
collect(com.gs.collections.api.block.function.primitive.ShortToObjectFunction<? extends V> function) |
com.gs.collections.api.list.primitive.MutableShortList |
distinct() |
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). |
void |
forEachWithIndex(com.gs.collections.api.block.procedure.primitive.ShortIntProcedure procedure) |
short |
get(int index) |
short |
getFirst() |
short |
getLast() |
int |
hashCode()
Follows the same general contract as
List.hashCode(). |
int |
indexOf(short value) |
<T> T |
injectIntoWithIndex(T injectedValue,
com.gs.collections.api.block.function.primitive.ObjectShortIntToObjectFunction<? super T,? extends T> function) |
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.MutableShortList |
subList(int fromIndex,
int toIndex) |
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, asLazy, average, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, getShortCollection, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, retainAll, retainAll, shortIterator, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, addAll, clear, remove, removeAll, removeAll, retainAll, retainAll, shortIteratorallSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, 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.ordered.primitive.OrderedShortIterablepublic short getLast()
getLast in interface com.gs.collections.api.ordered.primitive.ReversibleShortIterablepublic int indexOf(short value)
indexOf in interface com.gs.collections.api.ordered.primitive.OrderedShortIterablepublic 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.ordered.primitive.OrderedShortIterableselect in interface com.gs.collections.api.ordered.primitive.ReversibleShortIterableselect 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.ordered.primitive.OrderedShortIterablereject in interface com.gs.collections.api.ordered.primitive.ReversibleShortIterablereject 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.ordered.primitive.OrderedShortIterablecollect in interface com.gs.collections.api.ordered.primitive.ReversibleShortIterablecollect 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 int binarySearch(short value)
binarySearch in interface com.gs.collections.api.list.primitive.ShortListpublic 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.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.MutableShortListtoReversed in interface com.gs.collections.api.list.primitive.ShortListtoReversed in interface com.gs.collections.api.ordered.primitive.ReversibleShortIterablepublic void forEachWithIndex(com.gs.collections.api.block.procedure.primitive.ShortIntProcedure procedure)
forEachWithIndex in interface com.gs.collections.api.ordered.primitive.OrderedShortIterablepublic com.gs.collections.api.LazyShortIterable asReversed()
asReversed in interface com.gs.collections.api.ordered.primitive.ReversibleShortIterablepublic <T> T injectIntoWithIndex(T injectedValue,
com.gs.collections.api.block.function.primitive.ObjectShortIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface com.gs.collections.api.ordered.primitive.OrderedShortIterableinjectIntoWithIndex in interface com.gs.collections.api.ordered.primitive.ReversibleShortIterablepublic com.gs.collections.api.list.primitive.MutableShortList distinct()
distinct in interface com.gs.collections.api.list.primitive.MutableShortListdistinct in interface com.gs.collections.api.list.primitive.ShortListdistinct in interface com.gs.collections.api.ordered.primitive.ReversibleShortIterablepublic com.gs.collections.api.list.primitive.MutableShortList subList(int fromIndex,
int toIndex)
subList in interface com.gs.collections.api.list.primitive.MutableShortListsubList in interface com.gs.collections.api.list.primitive.ShortListList#subList(int fromIndex, int toIndex)}