Serializable
, MutableShortCollection
, MutableShortList
, ShortList
, OrderedShortIterable
, ReversibleShortIterable
, PrimitiveIterable
, ShortIterable
@NotThreadSafe public final class UnmodifiableShortList extends AbstractUnmodifiableShortCollection implements MutableShortList
Constructor | Description |
---|---|
UnmodifiableShortList(MutableShortList list) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
addAllAtIndex(int index,
short... source) |
|
boolean |
addAllAtIndex(int index,
ShortIterable source) |
|
void |
addAtIndex(int index,
short element) |
|
LazyShortIterable |
asReversed() |
|
MutableShortList |
asSynchronized() |
|
MutableShortList |
asUnmodifiable() |
|
int |
binarySearch(short value) |
|
<V> MutableList<V> |
collect(ShortToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
MutableShortList |
distinct() |
|
long |
dotProduct(ShortList list) |
|
boolean |
equals(Object otherList) |
Follows the same general contract as
List.equals(Object) . |
void |
forEachWithIndex(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,
ObjectShortIntToObjectFunction<? super T,? extends T> function) |
|
int |
lastIndexOf(short value) |
|
MutableShortList |
reject(ShortPredicate predicate) |
Returns a new ShortIterable with all of the elements in the ShortIterable that
return false for the specified predicate.
|
short |
removeAtIndex(int index) |
|
MutableShortList |
reverseThis() |
|
MutableShortList |
select(ShortPredicate predicate) |
Returns a new ShortIterable with all of the elements in the ShortIterable that
return true for the specified predicate.
|
short |
set(int index,
short element) |
|
MutableShortList |
sortThis() |
Sorts this list mutating its contents and returns the same mutable list (this).
|
MutableShortList |
subList(int fromIndex,
int toIndex) |
|
ImmutableShortList |
toImmutable() |
Returns an immutable copy of this list.
|
MutableShortList |
toReversed() |
|
UnmodifiableShortList |
with(short element) |
|
UnmodifiableShortList |
withAll(ShortIterable elements) |
|
UnmodifiableShortList |
without(short element) |
|
UnmodifiableShortList |
withoutAll(ShortIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, 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, toString
add, addAll, addAll, clear, remove, removeAll, removeAll, retainAll, retainAll, shortIterator
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
allSatisfy, anySatisfy, asLazy, average, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
public UnmodifiableShortList(MutableShortList list)
public short getFirst()
getFirst
in interface OrderedShortIterable
public short getLast()
getLast
in interface ReversibleShortIterable
public int indexOf(short value)
indexOf
in interface OrderedShortIterable
public int lastIndexOf(short value)
lastIndexOf
in interface ShortList
public void addAtIndex(int index, short element)
addAtIndex
in interface MutableShortList
public boolean addAllAtIndex(int index, short... source)
addAllAtIndex
in interface MutableShortList
public boolean addAllAtIndex(int index, ShortIterable source)
addAllAtIndex
in interface MutableShortList
public short removeAtIndex(int index)
removeAtIndex
in interface MutableShortList
public short set(int index, short element)
set
in interface MutableShortList
public UnmodifiableShortList with(short element)
with
in interface MutableShortCollection
with
in interface MutableShortList
with
in class AbstractUnmodifiableShortCollection
public UnmodifiableShortList without(short element)
without
in interface MutableShortCollection
without
in interface MutableShortList
without
in class AbstractUnmodifiableShortCollection
public UnmodifiableShortList withAll(ShortIterable elements)
withAll
in interface MutableShortCollection
withAll
in interface MutableShortList
withAll
in class AbstractUnmodifiableShortCollection
public UnmodifiableShortList withoutAll(ShortIterable elements)
withoutAll
in interface MutableShortCollection
withoutAll
in interface MutableShortList
withoutAll
in class AbstractUnmodifiableShortCollection
public MutableShortList select(ShortPredicate predicate)
ShortIterable
select
in interface MutableShortCollection
select
in interface MutableShortList
select
in interface OrderedShortIterable
select
in interface ReversibleShortIterable
select
in interface ShortIterable
select
in interface ShortList
select
in class AbstractUnmodifiableShortCollection
public MutableShortList reject(ShortPredicate predicate)
ShortIterable
reject
in interface MutableShortCollection
reject
in interface MutableShortList
reject
in interface OrderedShortIterable
reject
in interface ReversibleShortIterable
reject
in interface ShortIterable
reject
in interface ShortList
reject
in class AbstractUnmodifiableShortCollection
public <V> MutableList<V> collect(ShortToObjectFunction<? extends V> function)
ShortIterable
collect
in interface MutableShortCollection
collect
in interface MutableShortList
collect
in interface OrderedShortIterable
collect
in interface ReversibleShortIterable
collect
in interface ShortIterable
collect
in interface ShortList
collect
in class AbstractUnmodifiableShortCollection
public MutableShortList sortThis()
MutableShortList
sortThis
in interface MutableShortList
public int binarySearch(short value)
binarySearch
in interface ShortList
public long dotProduct(ShortList list)
dotProduct
in interface ShortList
public boolean equals(Object otherList)
ShortList
List.equals(Object)
.public int hashCode()
ShortList
List.hashCode()
.public MutableShortList asUnmodifiable()
asUnmodifiable
in interface MutableShortCollection
asUnmodifiable
in interface MutableShortList
asUnmodifiable
in class AbstractUnmodifiableShortCollection
public MutableShortList asSynchronized()
asSynchronized
in interface MutableShortCollection
asSynchronized
in interface MutableShortList
asSynchronized
in class AbstractUnmodifiableShortCollection
public ImmutableShortList toImmutable()
MutableShortList
toImmutable
in interface MutableShortCollection
toImmutable
in interface MutableShortList
toImmutable
in interface ShortList
toImmutable
in class AbstractUnmodifiableShortCollection
public MutableShortList reverseThis()
reverseThis
in interface MutableShortList
public MutableShortList toReversed()
toReversed
in interface MutableShortList
toReversed
in interface ReversibleShortIterable
toReversed
in interface ShortList
public void forEachWithIndex(ShortIntProcedure procedure)
forEachWithIndex
in interface OrderedShortIterable
public LazyShortIterable asReversed()
asReversed
in interface ReversibleShortIterable
public <T> T injectIntoWithIndex(T injectedValue, ObjectShortIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex
in interface OrderedShortIterable
injectIntoWithIndex
in interface ReversibleShortIterable
public MutableShortList distinct()
distinct
in interface MutableShortList
distinct
in interface ReversibleShortIterable
distinct
in interface ShortList
public MutableShortList subList(int fromIndex, int toIndex)
subList
in interface MutableShortList
subList
in interface ShortList
Copyright © 2004–2017. All rights reserved.