Interface CharList
-
- All Superinterfaces:
CharIterable,OrderedCharIterable,PrimitiveIterable,ReversibleCharIterable
- All Known Subinterfaces:
ImmutableCharList,MutableCharList
public interface CharList extends ReversibleCharIterable
This file was automatically generated from template file primitiveList.stg.- Since:
- 3.0.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description intbinarySearch(char value)<V> ListIterable<V>collect(CharToObjectFunction<? extends V> function)Returns a new collection with the results of applying the specified function on each element of the source collection.default <V> ListIterable<V>collectWithIndex(CharIntToObjectFunction<? extends V> function)Returns a new ListIterable using results obtained by applying the specified function to each element and its corresponding index.CharListdistinct()longdotProduct(CharList list)booleanequals(Object o)Follows the same general contract asList.equals(Object).default voidforEachInBoth(CharList other, CharCharProcedure procedure)This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.charget(int index)inthashCode()Follows the same general contract asList.hashCode().intlastIndexOf(char value)CharListreject(CharPredicate predicate)Returns a new CharIterable with all of the elements in the CharIterable that return false for the specified predicate.default CharListrejectWithIndex(CharIntPredicate predicate)Returns a new CharList excluding all elements with corresponding indexes matching the specified predicate.CharListselect(CharPredicate predicate)Returns a new CharIterable with all of the elements in the CharIterable that return true for the specified predicate.default CharListselectWithIndex(CharIntPredicate predicate)Returns a new CharList including all elements with corresponding indexes matching the specified predicate.CharListsubList(int fromIndex, int toIndex)default CharListtap(CharProcedure procedure)ImmutableCharListtoImmutable()Returns an immutable copy of this list.CharListtoReversed()default <T> ListIterable<CharObjectPair<T>>zip(Iterable<T> iterable)Returns aListIterableformed from thisCharListand aListIterableby combining corresponding elements in pairs.default ListIterable<CharCharPair>zipChar(CharIterable iterable)Returns aListIterableformed from thisCharListand anotherCharListby combining corresponding elements in pairs.-
Methods inherited from interface org.eclipse.collections.api.CharIterable
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, charIterator, 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.ordered.primitive.OrderedCharIterable
collectWithIndex, forEachWithIndex, getFirst, indexOf, rejectWithIndex, selectWithIndex
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Methods inherited from interface org.eclipse.collections.api.ordered.primitive.ReversibleCharIterable
asReversed, getLast, injectIntoWithIndex
-
-
-
-
Method Detail
-
get
char get(int index)
-
dotProduct
long dotProduct(CharList list)
-
binarySearch
int binarySearch(char value)
-
lastIndexOf
int lastIndexOf(char value)
-
select
CharList select(CharPredicate predicate)
Description copied from interface:CharIterableReturns a new CharIterable with all of the elements in the CharIterable that return true for the specified predicate.- Specified by:
selectin interfaceCharIterable- Specified by:
selectin interfaceOrderedCharIterable- Specified by:
selectin interfaceReversibleCharIterable
-
reject
CharList reject(CharPredicate predicate)
Description copied from interface:CharIterableReturns a new CharIterable with all of the elements in the CharIterable that return false for the specified predicate.- Specified by:
rejectin interfaceCharIterable- Specified by:
rejectin interfaceOrderedCharIterable- Specified by:
rejectin interfaceReversibleCharIterable
-
tap
default CharList tap(CharProcedure procedure)
- Specified by:
tapin interfaceCharIterable- Since:
- 9.0.
-
forEachInBoth
default void forEachInBoth(CharList other, CharCharProcedure procedure)
This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.- Since:
- 11.1
-
selectWithIndex
default CharList selectWithIndex(CharIntPredicate predicate)
Returns a new CharList including all elements with corresponding indexes matching the specified predicate.- Specified by:
selectWithIndexin interfaceOrderedCharIterable- Specified by:
selectWithIndexin interfaceReversibleCharIterable- Since:
- 11.1.
-
rejectWithIndex
default CharList rejectWithIndex(CharIntPredicate predicate)
Returns a new CharList excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndexin interfaceOrderedCharIterable- Specified by:
rejectWithIndexin interfaceReversibleCharIterable- Since:
- 11.1.
-
collect
<V> ListIterable<V> collect(CharToObjectFunction<? extends V> function)
Description copied from interface:CharIterableReturns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.- Specified by:
collectin interfaceCharIterable- Specified by:
collectin interfaceOrderedCharIterable- Specified by:
collectin interfaceReversibleCharIterable
-
collectWithIndex
default <V> ListIterable<V> collectWithIndex(CharIntToObjectFunction<? extends V> function)
Returns a new ListIterable using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndexin interfaceOrderedCharIterable- Specified by:
collectWithIndexin interfaceReversibleCharIterable- Since:
- 9.1.
-
equals
boolean equals(Object o)
Follows the same general contract asList.equals(Object).
-
hashCode
int hashCode()
Follows the same general contract asList.hashCode().
-
toImmutable
ImmutableCharList toImmutable()
Returns an immutable copy of this list. If the list is immutable, it returns itself.
-
distinct
CharList distinct()
- Specified by:
distinctin interfaceReversibleCharIterable- Since:
- 6.0.
-
toReversed
CharList toReversed()
- Specified by:
toReversedin interfaceReversibleCharIterable- Since:
- 5.0.
-
subList
CharList subList(int fromIndex, int toIndex)
- Since:
- 5.0.
- See Also:
List.subList(int fromIndex, int toIndex)
-
zipChar
default ListIterable<CharCharPair> zipChar(CharIterable iterable)
Returns aListIterableformed from thisCharListand anotherCharListby combining corresponding elements in pairs. If one of the twoCharLists is longer than the other, its remaining elements are ignored.- Since:
- 9.1.
-
zip
default <T> ListIterable<CharObjectPair<T>> zip(Iterable<T> iterable)
Returns aListIterableformed from thisCharListand aListIterableby combining corresponding elements in pairs. If one of the two Lists is longer than the other, its remaining elements are ignored.- Since:
- 9.1.
-
-