public class CharArrayIndexer extends CharIndexer
char[] array.| Modifier and Type | Field and Description |
|---|---|
protected char[] |
array
The backing array.
|
| Constructor and Description |
|---|
CharArrayIndexer(char[] array,
int[] sizes,
int[] strides)
|
| Modifier and Type | Method and Description |
|---|---|
char[] |
array() |
char |
get(int... indices) |
char |
get(int i) |
CharIndexer |
get(int[] indices,
char[] c,
int offset,
int length) |
CharIndexer |
get(int i,
char[] c,
int offset,
int length) |
char |
get(int i,
int j) |
CharIndexer |
get(int i,
int j,
char[] c,
int offset,
int length) |
char |
get(int i,
int j,
int k) |
CharIndexer |
put(int[] indices,
char c) |
CharIndexer |
put(int[] indices,
char[] c,
int offset,
int length) |
CharIndexer |
put(int i,
char c) |
CharIndexer |
put(int i,
char[] c,
int offset,
int length) |
CharIndexer |
put(int i,
int j,
char c) |
CharIndexer |
put(int i,
int j,
char[] c,
int offset,
int length) |
CharIndexer |
put(int i,
int j,
int k,
char c) |
void |
release()
Makes sure changes are reflected onto the backing memory and releases any references.
|
create, create, create, create, get, get, get, getDouble, put, put, put, putDoublepublic CharArrayIndexer(char[] array,
int[] sizes,
int[] strides)
public char[] array()
public char get(int i)
get in class CharIndexerarray/buffer[i]public CharIndexer get(int i, char[] c, int offset, int length)
get in class CharIndexerthis where c[offset:offset + length] = array/buffer[i]public char get(int i,
int j)
get in class CharIndexerarray/buffer[i * strides[0] + j]public CharIndexer get(int i, int j, char[] c, int offset, int length)
get in class CharIndexerthis where c[offset:offset + length] = array/buffer[i * strides[0] + j]public char get(int i,
int j,
int k)
get in class CharIndexerarray/buffer[i * strides[0] + j * strides[1] + k]public char get(int... indices)
get in class CharIndexerarray/buffer[index(indices)]public CharIndexer get(int[] indices, char[] c, int offset, int length)
get in class CharIndexerthis where c[offset:offset + length] = array/buffer[index(indices)]public CharIndexer put(int i, char c)
put in class CharIndexerthis where array/buffer[i] = cpublic CharIndexer put(int i, char[] c, int offset, int length)
put in class CharIndexerthis where array/buffer[i] = c[offset:offset + length]public CharIndexer put(int i, int j, char c)
put in class CharIndexerthis where array/buffer[i * strides[0] + j] = cpublic CharIndexer put(int i, int j, char[] c, int offset, int length)
put in class CharIndexerthis where array/buffer[i * strides[0] + j] = c[offset:offset + length]public CharIndexer put(int i, int j, int k, char c)
put in class CharIndexerthis where array/buffer[i * strides[0] + j * strides[1] + k] = cpublic CharIndexer put(int[] indices, char c)
put in class CharIndexerthis where array/buffer[index(indices)] = cpublic CharIndexer put(int[] indices, char[] c, int offset, int length)
put in class CharIndexerthis where array/buffer[index(indices)] = c[offset:offset + length]Copyright © 2015. All Rights Reserved.