Module math

Interface NumberArrayAdapter<N extends Number,A>

Type Parameters:
N - Number type
A - Array type
All Superinterfaces:
ArrayAdapter<N,A>

public interface NumberArrayAdapter<N extends Number,A> extends ArrayAdapter<N,A>
Adapter for arrays of numbers, to avoid boxing.
Author:
Erich Schubert
  • Method Summary

    Modifier and Type
    Method
    Description
    get(A array, int off)
    Get the off'th item from the array.
    byte
    getByte(A array, int off)
    Get the off'th item from the array as byte.
    double
    getDouble(A array, int off)
    Get the off'th item from the array as double.
    float
    getFloat(A array, int off)
    Get the off'th item from the array as float.
    int
    getInteger(A array, int off)
    Get the off'th item from the array as integer.
    long
    getLong(A array, int off)
    Get the off'th item from the array as long.
    short
    getShort(A array, int off)
    Get the off'th item from the array as short.
    int
    size(A array)
    Get the size of the array.