Uses of Class
com.landawn.abacus.util.IntList
-
Uses of IntList in com.landawn.abacus.util
Modifier and TypeMethodDescriptionIntList.copy()
IntList.copy
(int fromIndex, int toIndex) IntList.copy
(int fromIndex, int toIndex, int step) static IntList
IntList.copyOf
(int[] a) static IntList
IntList.copyOf
(int[] a, int fromIndex, int toIndex) IntList.difference
(int[] a) IntList.difference
(IntList b) Returns the elements froma
, but exclude the elements inb
by occurrences.IntList.distinct
(int fromIndex, int toIndex) IntList.filter
(int fromIndex, int toIndex, Throwables.IntPredicate<E> filter) IntList.filter
(int fromIndex, int toIndex, Throwables.IntPredicate<E> filter, int max) IntList.filter
(Throwables.IntPredicate<E> filter) IntList.filter
(Throwables.IntPredicate<E> filter, int max) static IntList
IntList.from
(Collection<Integer> c) static IntList
IntList.from
(Collection<Integer> c, int defaultForNull) static IntList
IntList.from
(Collection<Integer> c, int fromIndex, int toIndex) static IntList
IntList.from
(Collection<Integer> c, int fromIndex, int toIndex, int defaultForNull) IntList.intersection
(int[] a) IntList.intersection
(IntList b) Returns a new list with all the elements occurred in botha
andb
by occurrences.IntList.map
(int fromIndex, int toIndex, Throwables.IntUnaryOperator<E> mapper) IntList.map
(Throwables.IntUnaryOperator<E> mapper) static IntList
IntList.of
(int... a) static IntList
IntList.of
(int[] a, int size) static IntList
IntList.random
(int len) static IntList
IntList.random
(int startInclusive, int endExclusive, int len) static IntList
IntList.range
(int startInclusive, int endExclusive) static IntList
IntList.range
(int startInclusive, int endExclusive, int by) static IntList
IntList.rangeClosed
(int startInclusive, int endInclusive) static IntList
IntList.rangeClosed
(int startInclusive, int endInclusive, int by) static IntList
IntList.repeat
(int element, int len) IntList.symmetricDifference
(int[] a) IntList.symmetricDifference
(IntList b) IntList a = IntList.of(0, 1, 2, 2, 3); IntList b = IntList.of(2, 5, 1); IntList c = a.symmetricDifference(b); // The elements c in a will be: [0, 2, 3, 5].ByteList.toIntList()
To int list.CharList.toIntList()
To int list.ShortList.toIntList()
To int list.IntIterator.toList()
NoCachingNoUpdating.DisposableIntArray.toList()
IntList.top
(int n) IntList.top
(int fromIndex, int toIndex, int n) IntList.top
(int fromIndex, int toIndex, int n, Comparator<? super Integer> cmp) IntList.top
(int n, Comparator<? super Integer> cmp) IntList.trimToSize()
Trim to size.Modifier and TypeMethodDescriptionstatic IntFunction<IntList>
Fn.Factory.ofIntList()
Of int list.Fn.Suppliers.ofIntList()
Of int list.IntList.split
(int fromIndex, int toIndex, int chunkSize) Returns List ofIntList
with consecutive sub sequences of the elements, each of the same size (the final sequence may be smaller).Modifier and TypeMethodDescriptionAdds the all.Adds the all.boolean
Adds the all.boolean
Adds the all.boolean
IntList.containsAll
(IntList c) boolean
IntList.containsAny
(IntList c) IntList.difference
(IntList b) Returns the elements froma
, but exclude the elements inb
by occurrences.boolean
IntList.intersection
(IntList b) Returns a new list with all the elements occurred in botha
andb
by occurrences.static final Builder.IntListBuilder
static Difference<List<Integer>,
List<Integer>> Removes the all.boolean
Removes the all.boolean
IntList.symmetricDifference
(IntList b) IntList a = IntList.of(0, 1, 2, 2, 3); IntList b = IntList.of(2, 5, 1); IntList c = a.symmetricDifference(b); // The elements c in a will be: [0, 2, 3, 5].Modifier and TypeMethodDescription<E extends Exception>
voidIntList.accept
(Throwables.Consumer<? super IntList, E> action) IntList.acceptIfNotEmpty
(Throwables.Consumer<? super IntList, E> action) Accept if not empty.<R,
E extends Exception>
RIntList.apply
(Throwables.Function<? super IntList, ? extends R, E> func) <R,
E extends Exception>
u.Optional<R>IntList.applyIfNotEmpty
(Throwables.Function<? super IntList, ? extends R, E> func) Apply if not empty. -
Uses of IntList in com.landawn.abacus.util.stream