Interface ISciList<T>
Defines the interface for a high-performance array-backed list type
Namespace:
Assembly: .dll
Syntax
public interface ISciList<T> extends List<T>, IDoubleValuesProvider, Parcelable
Type Parameters
Name | Description |
---|---|
T |
Methods
addRange(T[] array)
Adds a range of items to the list
Declaration
public abstract boolean addRange(T[] array)
Parameters
Type | Name | Description |
---|---|---|
T[] | array | The items to add |
Returns
Type | Description |
---|---|
boolean | True if operation was successful |
addRange(IValues<T> values)
Adds a range of items to the list
Declaration
public abstract boolean addRange(IValues<T> values)
Parameters
Type | Name | Description |
---|---|---|
IValues<T> | values | The items to add |
Returns
Type | Description |
---|---|
boolean | True if operation was successful |
addRange(int location, T[] array)
Adds a range of items to the list at specified location
Declaration
public abstract boolean addRange(int location, T[] array)
Parameters
Type | Name | Description |
---|---|---|
int | location | The location to add items at |
T[] | array | The items to add |
Returns
Type | Description |
---|---|
boolean | True if operation was successful |
addRange(int location, IValues<T> values)
Adds a range of items to the list at specified location
Declaration
public abstract boolean addRange(int location, IValues<T> values)
Parameters
Type | Name | Description |
---|---|---|
int | location | The location to add items at |
IValues<T> | values | The items to add |
Returns
Type | Description |
---|---|
boolean | True if operation was successful |
addRange(int location, Iterable<T> iterable)
Adds a range of items to the list at specified location
Declaration
public abstract boolean addRange(int location, Iterable<T> iterable)
Parameters
Type | Name | Description |
---|---|---|
int | location | The location to add items at |
Iterable<T> | iterable | The items to add |
Returns
Type | Description |
---|---|
boolean | True if operation was successful |
addRange(Iterable<T> iterable)
Adds a range of items to the list
Declaration
public abstract boolean addRange(Iterable<T> iterable)
Parameters
Type | Name | Description |
---|---|---|
Iterable<T> | iterable | The items to add |
Returns
Type | Description |
---|---|
boolean | True if operation was successful |
containsNaN(int startIndex, int count)
Checks whether data in list region contains NaN values
Declaration
public abstract boolean containsNaN(int startIndex, int count)
Parameters
Type | Name | Description |
---|---|---|
int | startIndex | The start index of sequence to process |
int | count | The size of data sequence to process |
Returns
Type | Description |
---|---|
boolean | If data sequence contains NaN value returns true, otherwise returns false |
findIndex(T value, SearchMode searchMode, boolean isSorted)
Finds value with specified search mode in this list
Declaration
public abstract int findIndex(T value, SearchMode searchMode, boolean isSorted)
Parameters
Type | Name | Description |
---|---|---|
T | value | The 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 |
getItemsClass()
Gets the supported items type
Declaration
public abstract Class<T> getItemsClass()
Returns
Type | Description |
---|---|
Class<T> | The type of items |
getMaximum()
Gets the maximum item of this list
Declaration
public abstract T getMaximum()
Returns
Type | Description |
---|---|
T | The maximum item of this list |
getMinMax(IRange<T> range)
Gets the minimum and maximum items of this list
Declaration
public abstract void getMinMax(IRange<T> range)
Parameters
Type | Name | Description |
---|---|---|
IRange<T> | range | Range to hold minimum and maximum items |
getMinMax(int startIndex, int endIndex, IRange<T> range)
Gets the minimum and maximum items in specified range of this list
Declaration
public abstract void getMinMax(int startIndex, int endIndex, IRange<T> range)
Parameters
Type | Name | Description |
---|---|---|
int | startIndex | Start index in this list to search min/max |
int | endIndex | End index in this list to search min/max |
IRange<T> | range | Range to hold minimum and maximum items |
getMinMaxPositive(int startIndex, int endIndex, IRange<T> range)
Gets the positive minimum and positive maximum items in specified range of this list
Declaration
public abstract void getMinMaxPositive(int startIndex, int endIndex, IRange<T> range)
Parameters
Type | Name | Description |
---|---|---|
int | startIndex | Start index in this list to search min/max |
int | endIndex | End index in this list to search min/max |
IRange<T> | range | Range to hold minimum and maximum items |
getMinimum()
Gets the minimum item of this list
Declaration
public abstract T getMinimum()
Returns
Type | Description |
---|---|
T | The minimum item of this list |
isEvenlySpaced(int startIndex, int count, double epsilon)
Checks whether data in list region is evenly spaced and calculated space between data if it true.
Declaration
public abstract double isEvenlySpaced(int startIndex, int count, double epsilon)
Parameters
Type | Name | Description |
---|---|---|
int | startIndex | The start index index of sequence to process. |
int | count | The size of data sequence to processs. |
double | epsilon | The epsilon value. |
Returns
Type | Description |
---|---|
double | If data is evenly spaced returns positive value with calculated space, otherwise returns negative value. |
isSortedAscending(int startIndex, int count)
Checks whether list is sorted ascending in specified range.
Declaration
public abstract boolean isSortedAscending(int startIndex, int count)
Parameters
Type | Name | Description |
---|---|---|
int | startIndex | The start index of sequences to check. |
int | count | The amount of point in sequence to check. |
Returns
Type | Description |
---|---|
boolean | True if items in sequence is sorted in ascending order. |
removeRange(int location, int count)
Removes a range of items from list
Declaration
public abstract void removeRange(int location, int count)
Parameters
Type | Name | Description |
---|---|---|
int | location | The start location to remove items at |
int | count | The amount of items to remove |
setRange(int location, T[] values)
Replaces items at specified location on provided items
Declaration
public abstract void setRange(int location, T[] values)
Parameters
Type | Name | Description |
---|---|---|
int | location | The location to set items at |
T[] | values | The items to set |
setRange(int location, IValues<T> values)
Replaces items at specified location on provided items
Declaration
public abstract void setRange(int location, IValues<T> values)
Parameters
Type | Name | Description |
---|---|---|
int | location | The location to set items at |
IValues<T> | values | The items to set |
setRange(int location, Iterable<T> iterable)
Replaces items at specified location on provided items
Declaration
public abstract void setRange(int location, Iterable<T> iterable)
Parameters
Type | Name | Description |
---|---|---|
int | location | The location to set items at |
Iterable<T> | iterable | The items to set |
setSize(int size)
Sets the size of this list, in operations where we know the capacity in advance
Declaration
public abstract void setSize(int size)
Parameters
Type | Name | Description |
---|---|---|
int | size | The new size of list |