Value object.
The array components, in aggregate, are placed in java.util.List
objects instead of arrays for consistency with the rest of the API and
for interoperability with other APIs.
| Modifier and Type | Method and Description |
|---|---|
| public Value | |
| public List | |
| public List | Returns: a list ofValue objects, one for each requested
array component ordered by array index. When there are
no elements in the specified range (e.g.
length is zero) an empty list is returnedthe index of the first component to retrieve index, int the number of components to retrieve, or -1 to
retrieve all components to the end of this array. length)Returns a range of array components. |
| public int | Returns: the integer count of components in this array.Returns the number of components in this array. |
| public void | |
| public void | |
| public void | setValues(int
the index of the first component to set. index, List<? extends Value> a list of values, int Value objects to be placed
in this array.the index of the first source value to use. srcIndex, int the number of components to set, or -1 to set
all components to the end of this array or the end of
length)values (whichever comes first).Replaces a range of array components with other values. |
| getValue | back to summary |
|---|---|
| public Value getValue(int index) Returns an array component value.
| |
| getValues | back to summary |
|---|---|
| public List Returns all of the components in this array. | |
| getValues | back to summary |
|---|---|
| public List Returns a range of array components.
| |
| length | back to summary |
|---|---|
| public int length() Returns the number of components in this array.
| |
| setValue | back to summary |
|---|---|
| public void setValue(int index, Value value) throws InvalidTypeException, ClassNotLoadedException Replaces an array component with another value. Object values must be assignment compatible with the component type (This implies that the component type must be loaded through the declaring class's class loader). Primitive values must be either assignment compatible with the component type or must be convertible to the component type without loss of information. See JLS section 5.2 for more information on assignment compatibility.
| |
| setValues | back to summary |
|---|---|
| public void setValues(List<? extends Value> values) throws InvalidTypeException, ClassNotLoadedException Replaces all array components with other values. If the given list is larger in size than the array, the values at the end of the list are ignored. Object values must be assignment compatible with the element type (This implies that the component type must be loaded through the enclosing class's class loader). Primitive values must be either assignment compatible with the component type or must be convertible to the component type without loss of information. See JLS section 5.2 for more information on assignment compatibility.
| |
| setValues | back to summary |
|---|---|
| public void setValues(int index, List<? extends Value> values, int srcIndex, int length) throws InvalidTypeException, ClassNotLoadedException Replaces a range of array components with other values. Object values must be assignment compatible with the component type (This implies that the component type must be loaded through the enclosing class's class loader). Primitive values must be either assignment compatible with the component type or must be convertible to the component type without loss of information. See JLS section 5.2 for more information on assignment compatibility.
| |