Class IDoubleList.IReadOnlyDoubleListFromArray
- java.lang.Object
-
- org.magicwerk.brownies.collections.primitive.IDoubleList
-
- org.magicwerk.brownies.collections.primitive.IDoubleList.IReadOnlyDoubleList
-
- org.magicwerk.brownies.collections.primitive.IDoubleList.IReadOnlyDoubleListFromArray
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
- Enclosing class:
- IDoubleList
protected static class IDoubleList.IReadOnlyDoubleListFromArray extends IDoubleList.IReadOnlyDoubleList
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.magicwerk.brownies.collections.primitive.IDoubleList
IDoubleList.IReadOnlyDoubleList, IDoubleList.IReadOnlyDoubleListFromArray, IDoubleList.IReadOnlyDoubleListFromCollection, IDoubleList.IReadOnlyDoubleListFromList, IDoubleList.IReadOnlyDoubleListFromMult
-
-
Constructor Summary
Constructors Constructor Description IReadOnlyDoubleListFromArray(double[] array)IReadOnlyDoubleListFromArray(double[] array, int offset, int length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected doubledoGet(int index)Helper method for getting an element from the list.intsize()-
Methods inherited from class org.magicwerk.brownies.collections.primitive.IDoubleList.IReadOnlyDoubleList
binarySearch, capacity, doAdd, doAssign, doClone, doCreate, doEnsureCapacity, doRemove, doReSet, doSet, getDefaultElem, sort, trimToSize, unmodifiableList
-
Methods inherited from class org.magicwerk.brownies.collections.primitive.IDoubleList
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 classIDoubleList
-
doGet
protected double doGet(int index)
Description copied from class:IDoubleListHelper 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 classIDoubleList- Parameters:
index- index of element to return- Returns:
- the element at the specified position in this list
-
-