public class ArrayChar extends Array implements Iterable<String>
Array| Modifier and Type | Class and Description | 
|---|---|
| static class  | ArrayChar.D0Concrete implementation of Array specialized for char, rank 0. | 
| static class  | ArrayChar.D1Concrete implementation of Array specialized for char, rank 1. | 
| static class  | ArrayChar.D2Concrete implementation of Array specialized for char, rank 2. | 
| static class  | ArrayChar.D3Concrete implementation of Array specialized for char, rank 3. | 
| static class  | ArrayChar.D4Concrete implementation of Array specialized for char, rank 4. | 
| static class  | ArrayChar.D5Concrete implementation of Array specialized for char, rank 5. | 
| static class  | ArrayChar.D6Concrete implementation of Array specialized for char, rank 6. | 
| static class  | ArrayChar.D7Concrete implementation of Array specialized for char, rank 7. | 
| class  | ArrayChar.StringIteratorrank must be > 0 | 
| Constructor and Description | 
|---|
| ArrayChar(int[] dimensions)Create a new Array of type char and the given shape. | 
| ArrayChar(String s) | 
| Modifier and Type | Method and Description | 
|---|---|
| char | get(Index i)get the value at the specified index. | 
| boolean | getBoolean(Index i)not legal, throw ForbiddenConversionException | 
| boolean | getBoolean(int index) | 
| byte | getByte(Index i)Get the array element at the current element of ima, as a byte. | 
| byte | getByte(int index) | 
| char | getChar(Index i)Get the array element at the current element of ima, as a char. | 
| char | getChar(int index) | 
| ByteBuffer | getDataAsByteBuffer()Trasfer data to a ByteBuffer. | 
| double | getDouble(Index i)Get the array element at the current element of ima, as a double. | 
| double | getDouble(int index) | 
| Class | getElementType()Return the element class type | 
| float | getFloat(Index i)Get the array element at the current element of ima, as a float. | 
| float | getFloat(int index) | 
| int | getInt(Index i)Get the array element at the current element of ima, as a int. | 
| int | getInt(int index) | 
| long | getLong(Index i)Get the array element at the current element of ima, as a long. | 
| long | getLong(int index) | 
| Object | getObject(Index i)Get the array element at index as an Object. | 
| Object | getObject(int index) | 
| short | getShort(Index i)Get the array element at the current element of ima, as a short. | 
| short | getShort(int index) | 
| Object | getStorage()Get underlying primitive array storage. | 
| String | getString()Create a String out of this rank one ArrayChar object. | 
| String | getString(Index ima)Create a String out of this ArrayChar object. | 
| String | getString(int index)Create a String out of this rank two ArrayChar object. | 
| ArrayChar.StringIterator | getStringIterator()Treat this Variable as an array of Strings, and iterate over all the strings in the array. | 
| Iterator<String> | iterator() | 
| ArrayObject | make1DStringArray()Make this into the equivilent 1D ArrayObject of Strings. | 
| static ArrayChar | makeFromString(String s,
              int max)Create an ArrayChar from a String | 
| static ArrayChar | makeFromStringArray(ArrayObject values)Create an ArrayChar from an ArrayObject of Strings. | 
| static ArrayChar | makeFromStringArray(ArrayObject values,
                   int strlen)Create an ArrayChar from an ArrayObject of Strings. | 
| void | set(Index i,
   char value)set the value at the sepcified index. | 
| void | setBoolean(Index i,
          boolean value)not legal, throw ForbiddenConversionException | 
| void | setBoolean(int index,
          boolean value) | 
| void | setByte(Index i,
       byte value)Set the array element at the current element of ima. | 
| void | setByte(int index,
       byte value) | 
| void | setChar(Index i,
       char value)Set the array element at the current element of ima. | 
| void | setChar(int index,
       char value) | 
| void | setDouble(Index i,
         double value)Set the array element at the current element of ima. | 
| void | setDouble(int index,
         double value) | 
| void | setFloat(Index i,
        float value)Set the array element at the current element of ima. | 
| void | setFloat(int index,
        float value) | 
| void | setInt(Index i,
      int value)Set the array element at the current element of ima. | 
| void | setInt(int index,
      int value) | 
| void | setLong(Index i,
       long value)Set the array element at the current element of ima. | 
| void | setLong(int index,
       long value) | 
| void | setObject(Index i,
         Object value)Set the array element at index to the specified value. | 
| void | setObject(int index,
         Object value) | 
| void | setShort(Index i,
        short value)Set the array element at the current element of ima. | 
| void | setShort(int index,
        short value) | 
| void | setString(Index ima,
         String val)Set the ArrayChar values from the characters in the String. | 
| void | setString(int index,
         String val)Set the ArrayChar values from the characters in the String. | 
| void | setString(String val)Set the ArrayChar values from the characters in the String. | 
| String | toString() | 
arraycopy, copy, copyTo1DJavaArray, copyToNDJavaArray, factory, factory, factory, factory, factoryConstant, flip, get1DJavaArray, getDataAsByteBuffer, getDataAsByteBuffer, getDataType, getIndex, getIndexIterator, getRangeIterator, getRank, getShape, getSize, getSizeBytes, hasNext, isConstant, isUnsigned, isVlen, makeArray, makeArray, makeArray, makeArrayRankPlusOne, makeFromJavaArray, makeFromJavaArray, makeObjectArray, makeVlenArray, next, nextBoolean, nextByte, nextChar, nextDouble, nextFloat, nextInt, nextLong, nextShort, permute, reduce, reduce, resetLocalIterator, reshape, reshapeNoCopy, section, section, section, sectionNoReduce, sectionNoReduce, shapeToString, slice, transposeequals, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic ArrayChar(int[] dimensions)
dimensions - the shape of the Array.public ArrayChar(String s)
public char get(Index i)
public boolean getBoolean(Index i)
getBoolean in class Arrayi - Index with current element setindex cast to boolean if necessary.public boolean getBoolean(int index)
getBoolean in class Arraypublic byte getByte(Index i)
Arraypublic char getChar(Index i)
Arraypublic ByteBuffer getDataAsByteBuffer()
getDataAsByteBuffer in class Arraypublic double getDouble(Index i)
Arraypublic Class getElementType()
getElementType in class Arraypublic float getFloat(Index i)
Arraypublic int getInt(Index i)
Arraypublic long getLong(Index i)
Arraypublic Object getObject(Index i)
Arraypublic short getShort(Index i)
Arraypublic Object getStorage()
ArraygetStorage in class Arraypublic String getString()
IllegalArgumentException - if rank != 1public String getString(Index ima)
 
 ArrayChar ca;
 Index ima = ca.getIndex();
 for (int i=0; i
ima - the Index of where in the Array to start.IllegalArgumentException - if rank != 1public String getString(int index)
index - index into 1D String array, must be < getShape(0).IllegalArgumentException - if rank != 2public ArrayChar.StringIterator getStringIterator()
public ArrayObject make1DStringArray()
public static ArrayChar makeFromString(String s, int max)
s - Stringmax - maximum lengthpublic static ArrayChar makeFromStringArray(ArrayObject values)
values - ArrayObject of Stringpublic static ArrayChar makeFromStringArray(ArrayObject values, int strlen)
values - ArrayObject of Stringstrlen - string length dimension sizepublic void set(Index i, char value)
public void setBoolean(Index i, boolean value)
setBoolean in class Arrayi - Index with current element setvalue - the new value; cast to underlying data type if necessary.public void setBoolean(int index,
                       boolean value)
setBoolean in class Arraypublic void setByte(Index i, byte value)
Arraypublic void setChar(Index i, char value)
Arraypublic void setDouble(Index i, double value)
Arraypublic void setFloat(Index i, float value)
Arraypublic void setInt(Index i, int value)
Arraypublic void setLong(Index i, long value)
Arraypublic void setObject(Index i, Object value)
Arraypublic void setShort(Index i, short value)
Arraypublic void setString(Index ima, String val)
 
 String[][] val;
 ArrayChar ca;
 Index ima = ca.getIndex();
 int rank0 = ca.getShape()[0];
 int rank1 = ca.getShape()[1];
 
 for (int i=0; i
ima - the Index of where in the Array to start.val - set to this valuepublic void setString(int index,
                      String val)
 
 String[] val = new String[n];
 ArrayChar ca;
 Index ima = ca.getIndex();
 for (int i=0; i
index - index into 1D String array, must be < getShape(0).val - set chars from this sStringpublic void setString(String val)
val - set characters from this StringIllegalArgumentException - if rank != 2