Class UnmodifiableCharList
- java.lang.Object
-
- org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableCharCollection
-
- org.eclipse.collections.impl.list.mutable.primitive.UnmodifiableCharList
-
- All Implemented Interfaces:
Serializable,CharIterable,MutableCharCollection,CharList,MutableCharList,OrderedCharIterable,ReversibleCharIterable,PrimitiveIterable
public class UnmodifiableCharList extends AbstractUnmodifiableCharCollection implements MutableCharList
This file was automatically generated from template file unmodifiablePrimitiveList.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableCharList(MutableCharList list)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddAllAtIndex(int index, char... source)booleanaddAllAtIndex(int index, CharIterable source)voidaddAtIndex(int index, char element)LazyCharIterableasReversed()MutableCharListasSynchronized()MutableCharListasUnmodifiable()intbinarySearch(char value)MutableList<Character>boxed()<V> MutableList<V>collect(CharToObjectFunction<? extends V> function)<V> MutableList<V>collectWithIndex(CharIntToObjectFunction<? extends V> function)Returns a new MutableList using results obtained by applying the specified function to each element and its corresponding index.<V,R extends Collection<V>>
RcollectWithIndex(CharIntToObjectFunction<? extends V> function, R target)Adds elements to the target Collection using results obtained by applying the specified function to each element and its corresponding index.MutableCharListdistinct()longdotProduct(CharList list)booleanequals(Object otherList)voidforEachWithIndex(CharIntProcedure procedure)charget(int index)chargetFirst()chargetLast()inthashCode()intindexOf(char value)<T> TinjectIntoWithIndex(T injectedValue, ObjectCharIntToObjectFunction<? super T,? extends T> function)intlastIndexOf(char value)MutableCharListnewEmpty()MutableCharListreject(CharPredicate predicate)MutableCharListrejectWithIndex(CharIntPredicate predicate)Returns a new MutableCharList excluding all elements with corresponding indexes matching the specified predicate.<R extends MutableCharCollection>
RrejectWithIndex(CharIntPredicate predicate, R target)Returns a new MutableCharCollection excluding all elements with corresponding indexes matching the specified predicate.charremoveAtIndex(int index)MutableCharListreverseThis()MutableCharListselect(CharPredicate predicate)MutableCharListselectWithIndex(CharIntPredicate predicate)Returns a new MutableCharList including all elements with corresponding indexes matching the specified predicate.<R extends MutableCharCollection>
RselectWithIndex(CharIntPredicate predicate, R target)Returns a new MutableCharCollection including all elements with corresponding indexes matching the specified predicate.charset(int index, char element)MutableCharListshuffleThis()MutableCharListsortThis()MutableCharListsubList(int fromIndex, int toIndex)ImmutableCharListtoImmutable()MutableCharListtoReversed()UnmodifiableCharListwith(char element)UnmodifiableCharListwithAll(CharIterable elements)UnmodifiableCharListwithout(char element)UnmodifiableCharListwithoutAll(CharIterable elements)<T> MutableList<CharObjectPair<T>>zip(Iterable<T> iterable)MutableList<CharCharPair>zipChar(CharIterable iterable)-
Methods inherited from class org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableCharCollection
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, charIterator, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toString
-
Methods inherited from interface org.eclipse.collections.api.CharIterable
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.list.primitive.CharList
forEachInBoth
-
Methods inherited from interface org.eclipse.collections.api.collection.primitive.MutableCharCollection
add, addAll, addAll, charIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAll
-
Methods inherited from interface org.eclipse.collections.api.list.primitive.MutableCharList
shuffleThis, sortThis, sortThisBy, sortThisBy, swap, tap
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
-
-
-
Constructor Detail
-
UnmodifiableCharList
public UnmodifiableCharList(MutableCharList list)
-
-
Method Detail
-
getFirst
public char getFirst()
- Specified by:
getFirstin interfaceOrderedCharIterable
-
getLast
public char getLast()
- Specified by:
getLastin interfaceReversibleCharIterable
-
indexOf
public int indexOf(char value)
- Specified by:
indexOfin interfaceOrderedCharIterable
-
lastIndexOf
public int lastIndexOf(char value)
- Specified by:
lastIndexOfin interfaceCharList
-
boxed
public MutableList<Character> boxed()
- Specified by:
boxedin interfaceMutableCharList
-
addAtIndex
public void addAtIndex(int index, char element)- Specified by:
addAtIndexin interfaceMutableCharList
-
addAllAtIndex
public boolean addAllAtIndex(int index, char... source)- Specified by:
addAllAtIndexin interfaceMutableCharList
-
addAllAtIndex
public boolean addAllAtIndex(int index, CharIterable source)- Specified by:
addAllAtIndexin interfaceMutableCharList
-
removeAtIndex
public char removeAtIndex(int index)
- Specified by:
removeAtIndexin interfaceMutableCharList
-
set
public char set(int index, char element)- Specified by:
setin interfaceMutableCharList
-
with
public UnmodifiableCharList with(char element)
- Specified by:
within interfaceMutableCharCollection- Specified by:
within interfaceMutableCharList- Overrides:
within classAbstractUnmodifiableCharCollection
-
without
public UnmodifiableCharList without(char element)
- Specified by:
withoutin interfaceMutableCharCollection- Specified by:
withoutin interfaceMutableCharList- Overrides:
withoutin classAbstractUnmodifiableCharCollection
-
withAll
public UnmodifiableCharList withAll(CharIterable elements)
- Specified by:
withAllin interfaceMutableCharCollection- Specified by:
withAllin interfaceMutableCharList- Overrides:
withAllin classAbstractUnmodifiableCharCollection
-
withoutAll
public UnmodifiableCharList withoutAll(CharIterable elements)
- Specified by:
withoutAllin interfaceMutableCharCollection- Specified by:
withoutAllin interfaceMutableCharList- Overrides:
withoutAllin classAbstractUnmodifiableCharCollection
-
select
public MutableCharList select(CharPredicate predicate)
- Specified by:
selectin interfaceCharIterable- Specified by:
selectin interfaceCharList- Specified by:
selectin interfaceMutableCharCollection- Specified by:
selectin interfaceMutableCharList- Specified by:
selectin interfaceOrderedCharIterable- Specified by:
selectin interfaceReversibleCharIterable- Overrides:
selectin classAbstractUnmodifiableCharCollection
-
reject
public MutableCharList reject(CharPredicate predicate)
- Specified by:
rejectin interfaceCharIterable- Specified by:
rejectin interfaceCharList- Specified by:
rejectin interfaceMutableCharCollection- Specified by:
rejectin interfaceMutableCharList- Specified by:
rejectin interfaceOrderedCharIterable- Specified by:
rejectin interfaceReversibleCharIterable- Overrides:
rejectin classAbstractUnmodifiableCharCollection
-
collect
public <V> MutableList<V> collect(CharToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceCharIterable- Specified by:
collectin interfaceCharList- Specified by:
collectin interfaceMutableCharCollection- Specified by:
collectin interfaceMutableCharList- Specified by:
collectin interfaceOrderedCharIterable- Specified by:
collectin interfaceReversibleCharIterable- Overrides:
collectin classAbstractUnmodifiableCharCollection
-
sortThis
public MutableCharList sortThis()
- Specified by:
sortThisin interfaceMutableCharList
-
shuffleThis
public MutableCharList shuffleThis()
- Specified by:
shuffleThisin interfaceMutableCharList
-
binarySearch
public int binarySearch(char value)
- Specified by:
binarySearchin interfaceCharList
-
dotProduct
public long dotProduct(CharList list)
- Specified by:
dotProductin interfaceCharList
-
equals
public boolean equals(Object otherList)
-
hashCode
public int hashCode()
-
asUnmodifiable
public MutableCharList asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableCharCollection- Specified by:
asUnmodifiablein interfaceMutableCharList- Overrides:
asUnmodifiablein classAbstractUnmodifiableCharCollection
-
asSynchronized
public MutableCharList asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableCharCollection- Specified by:
asSynchronizedin interfaceMutableCharList- Overrides:
asSynchronizedin classAbstractUnmodifiableCharCollection
-
toImmutable
public ImmutableCharList toImmutable()
- Specified by:
toImmutablein interfaceCharList- Specified by:
toImmutablein interfaceMutableCharCollection- Specified by:
toImmutablein interfaceMutableCharList- Overrides:
toImmutablein classAbstractUnmodifiableCharCollection
-
newEmpty
public MutableCharList newEmpty()
- Specified by:
newEmptyin interfaceMutableCharCollection- Specified by:
newEmptyin interfaceMutableCharList- Since:
- 9.2.
-
reverseThis
public MutableCharList reverseThis()
- Specified by:
reverseThisin interfaceMutableCharList
-
toReversed
public MutableCharList toReversed()
- Specified by:
toReversedin interfaceCharList- Specified by:
toReversedin interfaceMutableCharList- Specified by:
toReversedin interfaceReversibleCharIterable
-
forEachWithIndex
public void forEachWithIndex(CharIntProcedure procedure)
- Specified by:
forEachWithIndexin interfaceOrderedCharIterable
-
asReversed
public LazyCharIterable asReversed()
- Specified by:
asReversedin interfaceReversibleCharIterable
-
injectIntoWithIndex
public <T> T injectIntoWithIndex(T injectedValue, ObjectCharIntToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoWithIndexin interfaceOrderedCharIterable- Specified by:
injectIntoWithIndexin interfaceReversibleCharIterable
-
distinct
public MutableCharList distinct()
- Specified by:
distinctin interfaceCharList- Specified by:
distinctin interfaceMutableCharList- Specified by:
distinctin interfaceReversibleCharIterable- Since:
- 6.0.
-
subList
public MutableCharList subList(int fromIndex, int toIndex)
- Specified by:
subListin interfaceCharList- Specified by:
subListin interfaceMutableCharList
-
zipChar
public MutableList<CharCharPair> zipChar(CharIterable iterable)
- Specified by:
zipCharin interfaceCharList- Specified by:
zipCharin interfaceMutableCharList- Since:
- 9.1.
-
zip
public <T> MutableList<CharObjectPair<T>> zip(Iterable<T> iterable)
- Specified by:
zipin interfaceCharList- Specified by:
zipin interfaceMutableCharList- Since:
- 9.1.
-
selectWithIndex
public MutableCharList selectWithIndex(CharIntPredicate predicate)
Returns a new MutableCharList including all elements with corresponding indexes matching the specified predicate.- Specified by:
selectWithIndexin interfaceCharList- Specified by:
selectWithIndexin interfaceMutableCharList- Specified by:
selectWithIndexin interfaceOrderedCharIterable- Specified by:
selectWithIndexin interfaceReversibleCharIterable- Since:
- 11.1.
-
selectWithIndex
public <R extends MutableCharCollection> R selectWithIndex(CharIntPredicate predicate, R target)
Returns a new MutableCharCollection including all elements with corresponding indexes matching the specified predicate.- Specified by:
selectWithIndexin interfaceOrderedCharIterable- Since:
- 11.1.
-
rejectWithIndex
public MutableCharList rejectWithIndex(CharIntPredicate predicate)
Returns a new MutableCharList excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndexin interfaceCharList- Specified by:
rejectWithIndexin interfaceMutableCharList- Specified by:
rejectWithIndexin interfaceOrderedCharIterable- Specified by:
rejectWithIndexin interfaceReversibleCharIterable- Since:
- 11.1.
-
rejectWithIndex
public <R extends MutableCharCollection> R rejectWithIndex(CharIntPredicate predicate, R target)
Returns a new MutableCharCollection excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndexin interfaceOrderedCharIterable- Since:
- 11.1.
-
collectWithIndex
public <V> MutableList<V> collectWithIndex(CharIntToObjectFunction<? extends V> function)
Returns a new MutableList using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndexin interfaceCharList- Specified by:
collectWithIndexin interfaceMutableCharList- Specified by:
collectWithIndexin interfaceOrderedCharIterable- Specified by:
collectWithIndexin interfaceReversibleCharIterable- Since:
- 9.1.
-
collectWithIndex
public <V,R extends Collection<V>> R collectWithIndex(CharIntToObjectFunction<? extends V> function, R target)
Adds elements to the target Collection using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndexin interfaceOrderedCharIterable- Since:
- 9.1.
-
-