Uses of Class
org.magicwerk.brownies.collections.primitive.IShortList
Packages that use IShortList
Package
Description
This packages contains helper classes for the package org.magicwerk.brownies.collections.primitive:
- binary search for primitive arrays
- merge sort for primitive arrays
- binary search for primitive arrays
- merge sort for primitive arrays
This packages contains implementations of GapList and BigList for primitive data types.
-
Uses of IShortList in org.magicwerk.brownies.collections.helper.primitive
Fields in org.magicwerk.brownies.collections.helper.primitive declared as IShortListMethods in org.magicwerk.brownies.collections.helper.primitive with parameters of type IShortListModifier and TypeMethodDescriptionstatic int
ShortBinarySearch.binarySearch
(IShortList list, short key, int lower, int upper) Searches the specified list for the specified object using the binary search algorithm.static <E> void
ShortMergeSort.sort
(IShortList list) static <E> void
ShortMergeSort.sort
(IShortList list, int from, int to) Constructors in org.magicwerk.brownies.collections.helper.primitive with parameters of type IShortList -
Uses of IShortList in org.magicwerk.brownies.collections.primitive
Subclasses of IShortList in org.magicwerk.brownies.collections.primitiveModifier and TypeClassDescriptionclass
ShortBigList is a list optimized for storing large number of elements.protected static class
A read-only version ofinvalid reference
Key1List
(package private) static class
A block stores in maximum blockSize number of elements.class
Class {link ShortGapList} combines the strengths of bothArrayList
andLinkedList
.protected static class
A read-only version ofShortGapList
.Methods in org.magicwerk.brownies.collections.primitive that return IShortListModifier and TypeMethodDescriptionIShortList.clone()
Returns a shallow copy of this list.abstract IShortList
IShortList.copy()
Returns a shallow copy of this list.IShortList.crop()
Returns a copy this list but without elements.protected abstract IShortList
IShortList.doCreate
(int capacity) Create list with specified capacity.protected IShortList
ShortBigList.doCreate
(int capacity) IShortList.extract
(int index, int len) Removes specified range of elements from list and return them.Removes and returns all elements in the list which match the predicate.Create a new list by applying the specified filter to all elements.IShortList.getAll
(int index, int len) Returns specified range of elements from list.IShortList.getAll
(short elem) Returns all elements in the list equal to the specified element.abstract IShortList
IShortList.immutableList()
Returns an immutable copy of this list.IShortList.removeAll
(short elem) Removes all equal elements.IShortList.transformedList
(UnaryOperator<Short> op) Create a new list by applying the specified transforming operator to all elements.abstract IShortList
IShortList.unmodifiableList()
Methods in org.magicwerk.brownies.collections.primitive with parameters of type IShortListModifier and TypeMethodDescriptionboolean
IShortList.addAll
(int index, IShortList list) Inserts all of the elements in the specified list into this list, starting at the specified position.boolean
IShortList.addAll
(IShortList list) Adds all of the elements in the specified list into this list.protected abstract void
IShortList.doAssign
(IShortList that) Assign this list the content of the that list.protected void
ShortBigList.doAssign
(IShortList that) protected void
ShortGapList.doAssign
(IShortList that) protected abstract void
IShortList.doClone
(IShortList that) Initialize this object after the bitwise copy has been made by Object.clone().protected void
ShortBigList.doClone
(IShortList that) protected void
ShortGapList.doClone
(IShortList that) (package private) void
IShortList.doTransfer
(int transferMode, int srcIndex, int srcLen, IShortList dst, int dstIndex, int dstLen) (package private) void
IShortList.doTransferSwap
(int srcIndex, IShortList dst, int dstIndex, int len) void
IShortList.initAll
(IShortList list) Initializes the list so it will afterwards only contain the elements of the collection.void
IShortList.putAll
(int index, IShortList list) Set or add the specified elements.boolean
IShortList.removeAll
(IShortList coll) void
IShortList.replaceAll
(int index, int len, IShortList list) Replaces the specified range with new elements.boolean
IShortList.retainAll
(IShortList coll) void
IShortList.setAll
(int index, IShortList list) Sets the specified elements.static void
IShortList.transferCopy
(IShortList src, int srcIndex, int srcLen, IShortList dst, int dstIndex, int dstLen) Copies elements from one list to another.static void
IShortList.transferMove
(IShortList src, int srcIndex, int srcLen, IShortList dst, int dstIndex, int dstLen) Moves elements from one list to another by setting it to null in the source list.static void
IShortList.transferRemove
(IShortList src, int srcIndex, int srcLen, IShortList dst, int dstIndex, int dstLen) Moves elements from one list to another by removing it from the source list.static void
IShortList.transferSwap
(IShortList src, int srcIndex, IShortList dst, int dstIndex, int len) Swaps elements from two lists.