Interface IDoubleValuesProvider
Defines a collection which can represented as sequence of double values
Namespace:
Assembly: .dll
Syntax
public interface IDoubleValuesProvider
Methods
findIndex(double doubleValue, SearchMode searchMode, boolean isSorted)
Finds value by its double representation with specified search mode in this list
Declaration
public abstract int findIndex(double doubleValue, SearchMode searchMode, boolean isSorted)
Parameters
Type | Name | Description |
---|---|---|
double | doubleValue | The double representation of value to find |
SearchMode | searchMode | The search mode |
boolean | isSorted | The flag which specified whether of not list is sorted in ascending order |
Returns
Type | Description |
---|---|
int | The index of item in list |
getDoubleValue(int location)
Gets the double representation of item at specified index
Declaration
public abstract double getDoubleValue(int location)
Parameters
Type | Name | Description |
---|---|---|
int | location | The index to get item at |
Returns
Type | Description |
---|---|
double |
getDoubleValues(DoubleValues doubleValues, IntegerValues indices)
Gets the items of list at specified indices and sets them as double values
Declaration
public abstract void getDoubleValues(DoubleValues doubleValues, IntegerValues indices)
Parameters
Type | Name | Description |
---|---|---|
DoubleValues | doubleValues | The target collection to add item to |
IntegerValues | indices | The collection of indices to get items at |
getDoubleValues(DoubleValues doubleValues, int startIndex, int count)
Gets the items of list at specified start index and sets them as double values
Declaration
public abstract void getDoubleValues(DoubleValues doubleValues, int startIndex, int count)
Parameters
Type | Name | Description |
---|---|---|
DoubleValues | doubleValues | The target collection to add item to |
int | startIndex | The index to start at |
int | count | The amount of items to be retrieved |
size()
Returns the number of elements in this provider.
Declaration
public abstract int size()
Returns
Type | Description |
---|---|
int | The number of elements in this provider. |