68 |
* @exception IndexOutOfBoundsException If the preconditions on the offset |
* @exception IndexOutOfBoundsException If the preconditions on the offset |
69 |
* and length parameters do not hold |
* and length parameters do not hold |
70 |
*/ |
*/ |
71 |
final public static LongBuffer wrap (long[] array, int offset, int length) |
public static final LongBuffer wrap (long[] array, int offset, int length) |
72 |
{ |
{ |
73 |
return new LongBufferImpl (array, 0, array.length, offset + length, offset, -1, false); |
return new LongBufferImpl (array, 0, array.length, offset + length, offset, -1, false); |
74 |
} |
} |
77 |
* Wraps a <code>long</code> array into a <code>LongBuffer</code> |
* Wraps a <code>long</code> array into a <code>LongBuffer</code> |
78 |
* object. |
* object. |
79 |
*/ |
*/ |
80 |
final public static LongBuffer wrap (long[] array) |
public static final LongBuffer wrap (long[] array) |
81 |
{ |
{ |
82 |
return wrap (array, 0, array.length); |
return wrap (array, 0, array.length); |
83 |
} |
} |