Module math
Interface ArrayAdapter<T,A>
- Type Parameters:
T
- Item typeA
- Array object type
- All Known Subinterfaces:
NumberArrayAdapter<N,
A>
public interface ArrayAdapter<T,A>
Adapter for array-like things. For example, arrays and lists.
- Author:
- Erich Schubert
-
Method Summary
-
Method Details
-
size
Get the size of the array.- Parameters:
array
- Array-like thing- Returns:
- Size
-
get
Get the off'th item from the array.- Parameters:
array
- Array to get fromoff
- Offset- Returns:
- Item at offset off
- Throws:
IndexOutOfBoundsException
- for an invalid index.
-