public class MutableValuesRaba extends AbstractRaba implements IRaba
byte[][] with fromIndex
and toIndex.MutableValueBuffera, capacity, fromIndex, toIndex| Constructor and Description |
|---|
MutableValuesRaba(byte[][] a)
Create a view of a byte[][].
|
MutableValuesRaba(int fromIndex,
int toIndex,
byte[][] a)
Create a view of a
byte[][] slice. |
MutableValuesRaba(int fromIndex,
int toIndex,
int capacity,
byte[][] a)
Create a view from a slice of a byte[][].
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isKeys()
No.
|
boolean |
isReadOnly()
No - This view is mutable.
|
MutableValuesRaba |
resize(int n)
Resize the buffer, copying up to n references to the existing data
into a new view backed by a new byte[][].
|
add, add, add, assertNotFull, assertNotReadOnly, assertNullAllowed, capacity, copy, get, isEmpty, isFull, isNull, iterator, length, rangeCheck, search, set, size, toString, toStringpublic MutableValuesRaba(byte[][] a)
a - The backing byte[][].public MutableValuesRaba(int fromIndex,
int toIndex,
byte[][] a)
byte[][] slice. The slice will include
only those elements between the fromIndex and the toIndex. The capacity
will be the #of elements. AbstractRaba.isFull() will report true
.fromIndex - The index of the first visible in the view (inclusive lower
bound).toIndex - The index of the first element beyond the view (exclusive
upper bound). If toIndex == fromIndex then the view is empty.a - The backing byte[][].public MutableValuesRaba(int fromIndex,
int toIndex,
int capacity,
byte[][] a)
fromIndex - The index of the first element in the byte[][] which is
visible in the view (inclusive lower bound).toIndex - The index of the first element in the byte[][] beyond the view
(exclusive upper bound).capacity - The #of elements which may be used in the view.a - The backing byte[][].public boolean isReadOnly()
isReadOnly in interface IRabapublic final boolean isKeys()
public MutableValuesRaba resize(int n)
AbstractRabafromIndex will be
zero in the new view.
This method requires a public constructor with the following signature:
ctor(byte[][])
resize in class AbstractRaban - The size of the new buffer.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.