pdk.util.Array
functions to operate with arrays
Functions
contains
Returns true if array contains the specified element.
Arguments:
array :: pdk.core.Array<T>
item :: T - element whose presence in this array is to be tested.
Result:
output :: pdk.core.Boolean - true if this array contains the specified element.
Possible exceptions
NullPointerException - throws if the array or item argument is
NULL
containsAll
Returns true if this array contains all of the elements of the specified array.
Arguments:
array :: pdk.core.Array<T>
items :: pdk.core.Array<T> - collection to be checked for containment in this array.
Result:
output :: pdk.core.Boolean - true if this array contains all of the elements of the specified array.
Possible exceptions
NullPointerException - throws if the array or items argument is
NULL
size
Returns the number of elements in the array.
Arguments:
array :: pdk.core.Array<T>
Result:
output :: pdk.core.Integer - length
Possible exceptions
NullPointerException - throws if the array argument is
NULL
subArray
Returns a view of the portion of the array between the specified fromIndex, inclusive, and toIndex, exclusive. (If fromIndex and toIndex are equal, the returned list is empty.).
Arguments:
array :: pdk.core.Array<T>
from :: pdk.core.Integer - from index.
to :: pdk.core.Integer - to index.
Result:
output :: pdk.core.Array<T> - new array.
Possible exceptions
NullPointerException - throws if the array, from or to argument is
NULL
Last updated