Serializable
, MutableIntCollection
, IntIterable
, IntList
, MutableIntList
, OrderedIntIterable
, ReversibleIntIterable
, PrimitiveIterable
@NotThreadSafe public final class UnmodifiableIntList extends AbstractUnmodifiableIntCollection implements MutableIntList
Constructor | Description |
---|---|
UnmodifiableIntList(MutableIntList list) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
addAllAtIndex(int index,
int... source) |
|
boolean |
addAllAtIndex(int index,
IntIterable source) |
|
void |
addAtIndex(int index,
int element) |
|
LazyIntIterable |
asReversed() |
|
MutableIntList |
asSynchronized() |
|
MutableIntList |
asUnmodifiable() |
|
int |
binarySearch(int value) |
|
<V> MutableList<V> |
collect(IntToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
MutableIntList |
distinct() |
|
long |
dotProduct(IntList list) |
|
boolean |
equals(Object otherList) |
Follows the same general contract as
List.equals(Object) . |
void |
forEachWithIndex(IntIntProcedure procedure) |
|
int |
get(int index) |
|
int |
getFirst() |
|
int |
getLast() |
|
int |
hashCode() |
Follows the same general contract as
List.hashCode() . |
int |
indexOf(int value) |
|
<T> T |
injectIntoWithIndex(T injectedValue,
ObjectIntIntToObjectFunction<? super T,? extends T> function) |
|
int |
lastIndexOf(int value) |
|
MutableIntList |
reject(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return false for the specified predicate.
|
int |
removeAtIndex(int index) |
|
MutableIntList |
reverseThis() |
|
MutableIntList |
select(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return true for the specified predicate.
|
int |
set(int index,
int element) |
|
MutableIntList |
sortThis() |
Sorts this list mutating its contents and returns the same mutable list (this).
|
MutableIntList |
subList(int fromIndex,
int toIndex) |
|
ImmutableIntList |
toImmutable() |
Returns an immutable copy of this list.
|
MutableIntList |
toReversed() |
|
UnmodifiableIntList |
with(int element) |
|
UnmodifiableIntList |
withAll(IntIterable elements) |
|
UnmodifiableIntList |
without(int element) |
|
UnmodifiableIntList |
withoutAll(IntIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, intIterator, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, 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
add, addAll, addAll, clear, intIterator, remove, removeAll, removeAll, retainAll, retainAll
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public UnmodifiableIntList(MutableIntList list)
public int getFirst()
getFirst
in interface OrderedIntIterable
public int getLast()
getLast
in interface ReversibleIntIterable
public int indexOf(int value)
indexOf
in interface OrderedIntIterable
public int lastIndexOf(int value)
lastIndexOf
in interface IntList
public void addAtIndex(int index, int element)
addAtIndex
in interface MutableIntList
public boolean addAllAtIndex(int index, int... source)
addAllAtIndex
in interface MutableIntList
public boolean addAllAtIndex(int index, IntIterable source)
addAllAtIndex
in interface MutableIntList
public int removeAtIndex(int index)
removeAtIndex
in interface MutableIntList
public int set(int index, int element)
set
in interface MutableIntList
public UnmodifiableIntList with(int element)
with
in interface MutableIntCollection
with
in interface MutableIntList
with
in class AbstractUnmodifiableIntCollection
public UnmodifiableIntList without(int element)
without
in interface MutableIntCollection
without
in interface MutableIntList
without
in class AbstractUnmodifiableIntCollection
public UnmodifiableIntList withAll(IntIterable elements)
withAll
in interface MutableIntCollection
withAll
in interface MutableIntList
withAll
in class AbstractUnmodifiableIntCollection
public UnmodifiableIntList withoutAll(IntIterable elements)
withoutAll
in interface MutableIntCollection
withoutAll
in interface MutableIntList
withoutAll
in class AbstractUnmodifiableIntCollection
public MutableIntList select(IntPredicate predicate)
IntIterable
select
in interface IntIterable
select
in interface IntList
select
in interface MutableIntCollection
select
in interface MutableIntList
select
in interface OrderedIntIterable
select
in interface ReversibleIntIterable
select
in class AbstractUnmodifiableIntCollection
public MutableIntList reject(IntPredicate predicate)
IntIterable
reject
in interface IntIterable
reject
in interface IntList
reject
in interface MutableIntCollection
reject
in interface MutableIntList
reject
in interface OrderedIntIterable
reject
in interface ReversibleIntIterable
reject
in class AbstractUnmodifiableIntCollection
public <V> MutableList<V> collect(IntToObjectFunction<? extends V> function)
IntIterable
collect
in interface IntIterable
collect
in interface IntList
collect
in interface MutableIntCollection
collect
in interface MutableIntList
collect
in interface OrderedIntIterable
collect
in interface ReversibleIntIterable
collect
in class AbstractUnmodifiableIntCollection
public MutableIntList sortThis()
MutableIntList
sortThis
in interface MutableIntList
public int binarySearch(int value)
binarySearch
in interface IntList
public long dotProduct(IntList list)
dotProduct
in interface IntList
public boolean equals(Object otherList)
IntList
List.equals(Object)
.public int hashCode()
IntList
List.hashCode()
.public MutableIntList asUnmodifiable()
asUnmodifiable
in interface MutableIntCollection
asUnmodifiable
in interface MutableIntList
asUnmodifiable
in class AbstractUnmodifiableIntCollection
public MutableIntList asSynchronized()
asSynchronized
in interface MutableIntCollection
asSynchronized
in interface MutableIntList
asSynchronized
in class AbstractUnmodifiableIntCollection
public ImmutableIntList toImmutable()
MutableIntList
toImmutable
in interface IntList
toImmutable
in interface MutableIntCollection
toImmutable
in interface MutableIntList
toImmutable
in class AbstractUnmodifiableIntCollection
public MutableIntList reverseThis()
reverseThis
in interface MutableIntList
public MutableIntList toReversed()
toReversed
in interface IntList
toReversed
in interface MutableIntList
toReversed
in interface ReversibleIntIterable
public void forEachWithIndex(IntIntProcedure procedure)
forEachWithIndex
in interface OrderedIntIterable
public LazyIntIterable asReversed()
asReversed
in interface ReversibleIntIterable
public <T> T injectIntoWithIndex(T injectedValue, ObjectIntIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex
in interface OrderedIntIterable
injectIntoWithIndex
in interface ReversibleIntIterable
public MutableIntList distinct()
distinct
in interface IntList
distinct
in interface MutableIntList
distinct
in interface ReversibleIntIterable
public MutableIntList subList(int fromIndex, int toIndex)
subList
in interface IntList
subList
in interface MutableIntList
Copyright © 2004–2017. All rights reserved.