Class IDoubleList.IDoubleListableFromArray
java.lang.Object
org.magicwerk.brownies.collections.primitive.IDoubleList.IDoubleListableFromArray
- All Implemented Interfaces:
IDoubleListable
- Enclosing class:
IDoubleList
protected static class IDoubleList.IDoubleListableFromArray
extends Object
implements IDoubleListable
Wrapper to treat an array as
IDoubleListable
.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIDoubleListableFromArray
(double[] array) IDoubleListableFromArray
(double[] array, int offset, int length) -
Method Summary
-
Field Details
-
array
double[] array -
offset
int offset -
length
int length
-
-
Constructor Details
-
IDoubleListableFromArray
IDoubleListableFromArray(double[] array) -
IDoubleListableFromArray
IDoubleListableFromArray(double[] array, int offset, int length)
-
-
Method Details
-
size
public int size()- Specified by:
size
in interfaceIDoubleListable
-
get
public double get(int index) - Specified by:
get
in interfaceIDoubleListable
-