Checks if an array of Objects is empty or null
.
Checks if an array of Objects is empty or null
.
the array to test
true
if the array is empty or null
Produces a new array containing the elements between the start and end indices.
Produces a new array containing the elements between the start and end indices.
The start index is inclusive, the end index exclusive. Null array input produces null output.
The component type of the subarray is always the same as that of the input array. Thus, if the
input is an array of type Date
, the following usage is envisaged:
Date[] someDates = (Date[]) Arrays.subarray(allDates, 2, 5);
the array
the starting index. Undervalue (<0) is promoted to 0, overvalue (>array.length) results in an empty array.
elements up to endIndex-1 are present in the returned subarray. Undervalue (< startIndex) produces empty array, overvalue (>array.length) is demoted to array length.
a new array containing the elements between the start and end indices.
Operations on arrays, primitive arrays (like
int[]
) and primitive wrapper arrays (likeInteger[]
).This class tries to handle
null
input gracefully. An exception will not be thrown for anull
array input.3.0.0