#include <src/main/decaf/util/Arrays.h>
|
| template<typename E> |
| static void | fill (E *array, int size, const E &value) |
| | Fills an array with the specified element.
|
| template<typename E> |
| static void | fill (E *array, int size, int start, int end, const E &value) |
| | Fills an array with the specified element within the range given.
|
◆ ~Arrays()
| virtual decaf::util::Arrays::~Arrays |
( |
| ) |
|
|
virtual |
◆ fill() [1/2]
template<typename E>
| void decaf::util::Arrays::fill |
( |
E * | array, |
|
|
int | size, |
|
|
const E & | value ) |
|
inlinestatic |
◆ fill() [2/2]
template<typename E>
| void decaf::util::Arrays::fill |
( |
E * | array, |
|
|
int | size, |
|
|
int | start, |
|
|
int | end, |
|
|
const E & | value ) |
|
inlinestatic |
Fills an array with the specified element within the range given.
- Parameters
-
| array | The Array to fill. |
| size | The actual size of the array passed. |
| start | The index to start the fill from (inclusive). |
| end | The index to fill to (exclusive). |
| value | The value to fill the array with. |
- Exceptions
-
| NullPointerException | if array is Null. |
| IllegalArgumentException | if the size parameter is negative, or the start index is greater than the end index. |
| IndexOutOfBoundsException | if the start index is negative or the end index is greater than the size parameter. |
References NULL.
The documentation for this class was generated from the following file: