Class IShortList.IReadOnlyShortListFromArray
- java.lang.Object
-
- org.magicwerk.brownies.collections.primitive.IShortList
-
- org.magicwerk.brownies.collections.primitive.IShortList.IReadOnlyShortList
-
- org.magicwerk.brownies.collections.primitive.IShortList.IReadOnlyShortListFromArray
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
- Enclosing class:
- IShortList
protected static class IShortList.IReadOnlyShortListFromArray extends IShortList.IReadOnlyShortList
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.magicwerk.brownies.collections.primitive.IShortList
IShortList.IReadOnlyShortList, IShortList.IReadOnlyShortListFromArray, IShortList.IReadOnlyShortListFromCollection, IShortList.IReadOnlyShortListFromList, IShortList.IReadOnlyShortListFromMult
-
-
Constructor Summary
Constructors Constructor Description IReadOnlyShortListFromArray(short[] array)IReadOnlyShortListFromArray(short[] array, int offset, int length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected shortdoGet(int index)Helper method for getting an element from the list.intsize()-
Methods inherited from class org.magicwerk.brownies.collections.primitive.IShortList.IReadOnlyShortList
binarySearch, capacity, doAdd, doAssign, doClone, doCreate, doEnsureCapacity, doRemove, doReSet, doSet, getDefaultElem, sort, trimToSize, unmodifiableList
-
Methods inherited from class org.magicwerk.brownies.collections.primitive.IShortList
add, add, addAll, addAll, addAll, addAll, addArray, addArray, addArray, addArray, addFirst, addIfAbsent, addLast, addMult, addMult, binarySearch, checkIndex, checkIndexAdd, checkLength, checkLengths, checkNonNull, checkRange, clear, clone, contains, containsAll, containsAny, containsIf, copy, copy, count, countIf, crop, doAddAll, doClear, doCreateArray, doGetAll, doModify, doRemoveAll, doReplaceAll, doRotate, doTransfer, doTransferSwap, drag, element, ensureCapacity, equals, equalsElem, extract, extractIf, fill, filter, filterMap, get, getAll, getAll, getDistinct, getFirst, getFirstOrNull, getIf, getLast, getLastOrNull, getSingle, getSingleOrNull, hashCode, hashCodeElem, indexOf, indexOf, indexOfIf, initAll, initAll, initArray, initMult, isEmpty, lastIndexOf, lastIndexOf, map, mapFilter, move, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, put, putAll, putAll, putArray, putMult, remove, remove, remove, removeAll, removeAll, removeAll, removeElem, removeFirst, removeFirstOccurrence, removeIf, removeLast, removeLastOccurrence, replaceAll, replaceAll, replaceArray, replaceMult, resize, retain, retainAll, retainAll, retainIf, reverse, reverse, rotate, rotate, set, setAll, setAll, setArray, setArray, setMult, sort, swap, toArray, toArray, toArray, toArray, toArray, toArray, toArray, toString, transferCopy, transferMove, transferRemove, transferSwap, transform, transformedList
-
-
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein classIShortList
-
doGet
protected short doGet(int index)
Description copied from class:IShortListHelper method for getting an element from the list. This is the only method which really gets an element. Override if you need to validity checks before getting.- Specified by:
doGetin classIShortList- Parameters:
index- index of element to return- Returns:
- the element at the specified position in this list
-
-