Interface CustomArrayValue
public interface CustomArrayValue
This class represents an array in the Denodo Platform values structure. Each
value of the array is a
CustomRecordValue.- Since:
- 4.6
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddValue(CustomRecordValue value) Appends the specifiedCustomRecordValueto the end of this array.voidaddValue(CustomRecordValue value, int position) Inserts the specifiedCustomRecordValueat the specified position in this array.getValue(int position) Returns the element at the specified position in this array.Obtains all the values in the array.removeValue(int position) Removes the element at the specified position in this array.intsize()Method to obtain the length of the array.
-
Method Details
-
size
int size()Method to obtain the length of the array.- Returns:
- The number of values contained in the array.
-
getValue
Returns the element at the specified position in this array.- Parameters:
position- index of element to return.- Returns:
- the element at the specified position in this array.
- Throws:
IndexOutOfBoundsException- if the index is out of range (index < 0 || index >= size()).
-
getValues
List<CustomRecordValue> getValues()Obtains all the values in the array.- Returns:
- A
Listof all the values in the array.
-
addValue
Inserts the specifiedCustomRecordValueat the specified position in this array. Shifts the element currently at that position (if any) and any subsequent elements to the right.- Parameters:
position- index at which the specified element is to be inserted.value- element to be inserted.- Throws:
IndexOutOfBoundsException- if the index is out of range (index < 0 || index > size()).
-
addValue
Appends the specifiedCustomRecordValueto the end of this array.- Parameters:
value- element to be appended to this array.
-
removeValue
Removes the element at the specified position in this array. Shifts any subsequent elements to the left . Returns the element that was removed from the array.- Parameters:
position- the index of the element to removed.- Returns:
- the element previously at the specified position.
- Throws:
IndexOutOfBoundsException- if the index is out of range (index < 0 || index >= size()).
-