Uses of Class
com.landawn.abacus.util.ShortList
-
Uses of ShortList in com.landawn.abacus.util
Modifier and TypeMethodDescriptionShortList.copy()
ShortList.copy
(int fromIndex, int toIndex) ShortList.copy
(int fromIndex, int toIndex, int step) static ShortList
ShortList.copyOf
(short[] a) static ShortList
ShortList.copyOf
(short[] a, int fromIndex, int toIndex) ShortList.difference
(short[] a) ShortList.difference
(ShortList b) ShortList.distinct
(int fromIndex, int toIndex) ShortList.filter
(int fromIndex, int toIndex, Throwables.ShortPredicate<E> filter) ShortList.filter
(int fromIndex, int toIndex, Throwables.ShortPredicate<E> filter, int max) ShortList.filter
(Throwables.ShortPredicate<E> filter) ShortList.filter
(Throwables.ShortPredicate<E> filter, int max) static ShortList
ShortList.from
(Collection<Short> c) static ShortList
ShortList.from
(Collection<Short> c, int fromIndex, int toIndex) static ShortList
ShortList.from
(Collection<Short> c, int fromIndex, int toIndex, short defaultForNull) static ShortList
ShortList.from
(Collection<Short> c, short defaultForNull) ShortList.intersection
(short[] a) ShortList.intersection
(ShortList b) ShortList.map
(int fromIndex, int toIndex, Throwables.ShortUnaryOperator<E> mapper) ShortList.map
(Throwables.ShortUnaryOperator<E> mapper) static ShortList
ShortList.of
(short... a) static ShortList
ShortList.of
(short[] a, int size) static ShortList
ShortList.random
(int len) static ShortList
ShortList.range
(short startInclusive, short endExclusive) static ShortList
ShortList.range
(short startInclusive, short endExclusive, short by) static ShortList
ShortList.rangeClosed
(short startInclusive, short endInclusive) static ShortList
ShortList.rangeClosed
(short startInclusive, short endInclusive, short by) static ShortList
ShortList.repeat
(short element, int len) ShortList.symmetricDifference
(short[] a) ShortList.symmetricDifference
(ShortList b) NoCachingNoUpdating.DisposableShortArray.toList()
ShortIterator.toList()
ShortList.top
(int n) ShortList.top
(int fromIndex, int toIndex, int n) ShortList.top
(int fromIndex, int toIndex, int n, Comparator<? super Short> cmp) ShortList.top
(int n, Comparator<? super Short> cmp) ShortList.trimToSize()
Trim to size.Modifier and TypeMethodDescriptionstatic IntFunction<ShortList>
Fn.Factory.ofShortList()
Of short list.Fn.Suppliers.ofShortList()
Of short list.ShortList.split
(int fromIndex, int toIndex, int size) Returns List ofShortList
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
ShortList.containsAll
(ShortList c) boolean
ShortList.containsAny
(ShortList c) ShortList.difference
(ShortList b) boolean
ShortList.intersection
(ShortList b) static final Builder.ShortListBuilder
static Difference<List<Short>,
List<Short>> Removes the all.boolean
Removes the all.boolean
ShortList.symmetricDifference
(ShortList b) Modifier and TypeMethodDescription<E extends Exception>
voidShortList.accept
(Throwables.Consumer<? super ShortList, E> action) ShortList.acceptIfNotEmpty
(Throwables.Consumer<? super ShortList, E> action) Accept if not empty.<R,
E extends Exception>
RShortList.apply
(Throwables.Function<? super ShortList, ? extends R, E> func) <R,
E extends Exception>
u.Optional<R>ShortList.applyIfNotEmpty
(Throwables.Function<? super ShortList, ? extends R, E> func) Apply if not empty. -
Uses of ShortList in com.landawn.abacus.util.stream
Modifier and TypeMethodDescriptionShortStream.collapse
(ShortBiPredicate collapsible) Merge series of adjacent elements which satisfy the given predicate using the merger function and return a new stream.Collectors.toShortList()