@CompileStatic class Vector
Vector implements a List based structure with the ability to manipulate elements by indeces
elements
- the number of entries in the vectorentries
- a List holding the vector values, the type of the entires is not specified
and the vector is initially emptyConstructor and description |
---|
Vector
() |
Type Params | Return Type | Name and description |
---|---|---|
|
List |
getEntries(Range range) Returns a List of values the size of the range from the Vector corresponding to the indices in the range |
|
List |
getEntries() Returns a List of elements values that are the current value held in the Vector |
|
void |
setEntries(List entryValues) The vector is set to the values cointained in entryValues |
|
void |
setEntries(List entryValues, Range range) The elements of the vector in the specified range are set to the values contained in entryValues |
|
String |
toString() |
Returns a List of values the size of the range from the Vector corresponding to the indices in the range
range
- specifies the indices to be returnedReturns a List of elements values that are the current value held in the Vector
The vector is set to the values cointained in entryValues
entryValues
- a List containing elements valuesThe elements of the vector in the specified range are set to the values contained in entryValues
entryValues
- a List containing, size of the range, valuesGPP - Groovy Parallel Patterns generated 18-09-2017 by Jon Kerridge, Edinburgh Napier University - j.kerridge@napier.ac.uk