Interface CharList
- All Superinterfaces:
CharIterable
,OrderedCharIterable
,PrimitiveIterable
,ReversibleCharIterable
- All Known Subinterfaces:
ImmutableCharList
,MutableCharList
- All Known Implementing Classes:
CharAdapter
,CharArrayList
,SynchronizedCharList
,UnmodifiableCharList
public interface CharList extends ReversibleCharIterable
This file was automatically generated from template file primitiveList.stg.
- Since:
- 3.0.
-
Method Summary
Modifier and Type Method Description int
binarySearch(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.CharList
distinct()
long
dotProduct(CharList list)
boolean
equals(Object o)
Follows the same general contract asList.equals(Object)
.char
get(int index)
int
hashCode()
Follows the same general contract asList.hashCode()
.int
lastIndexOf(char value)
CharList
reject(CharPredicate predicate)
Returns a new CharIterable with all of the elements in the CharIterable that return false for the specified predicate.CharList
select(CharPredicate predicate)
Returns a new CharIterable with all of the elements in the CharIterable that return true for the specified predicate.CharList
subList(int fromIndex, int toIndex)
default CharList
tap(CharProcedure procedure)
ImmutableCharList
toImmutable()
Returns an immutable copy of this list.CharList
toReversed()
default <T> ListIterable<CharObjectPair<T>>
zip(Iterable<T> iterable)
Returns aListIterable
formed from thisCharList
and aListIterable
by combining corresponding elements in pairs.default ListIterable<CharCharPair>
zipChar(CharIterable iterable)
Returns aListIterable
formed from thisCharList
and anotherCharList
by 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, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList
Methods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedCharIterable
collectWithIndex, forEachWithIndex, getFirst, indexOf
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 Details
-
get
char get(int index) -
dotProduct
-
binarySearch
int binarySearch(char value) -
lastIndexOf
int lastIndexOf(char value) -
select
Description copied from interface:CharIterable
Returns a new CharIterable with all of the elements in the CharIterable that return true for the specified predicate.- Specified by:
select
in interfaceCharIterable
- Specified by:
select
in interfaceOrderedCharIterable
- Specified by:
select
in interfaceReversibleCharIterable
-
reject
Description copied from interface:CharIterable
Returns a new CharIterable with all of the elements in the CharIterable that return false for the specified predicate.- Specified by:
reject
in interfaceCharIterable
- Specified by:
reject
in interfaceOrderedCharIterable
- Specified by:
reject
in interfaceReversibleCharIterable
-
tap
- Specified by:
tap
in interfaceCharIterable
- Since:
- 9.0.
-
collect
Description copied from interface:CharIterable
Returns 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:
collect
in interfaceCharIterable
- Specified by:
collect
in interfaceOrderedCharIterable
- Specified by:
collect
in interfaceReversibleCharIterable
-
collectWithIndex
Returns a new ListIterable using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndex
in interfaceOrderedCharIterable
- Specified by:
collectWithIndex
in interfaceReversibleCharIterable
- Since:
- 9.1.
-
equals
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:
distinct
in interfaceReversibleCharIterable
- Since:
- 6.0.
-
toReversed
CharList toReversed()- Specified by:
toReversed
in interfaceReversibleCharIterable
- Since:
- 5.0.
-
subList
- Since:
- 5.0.
- See Also:
List.subList(int fromIndex, int toIndex)
-
zipChar
Returns aListIterable
formed from thisCharList
and anotherCharList
by combining corresponding elements in pairs. If one of the twoCharList
s is longer than the other, its remaining elements are ignored.- Since:
- 9.1.
-
zip
Returns aListIterable
formed from thisCharList
and aListIterable
by combining corresponding elements in pairs. If one of the two Lists is longer than the other, its remaining elements are ignored.- Since:
- 9.1.
-