public final class OctaveBoolean extends AbstractGenericMatrix<boolean[],it.unimi.dsi.fastutil.booleans.BooleanArrayList>
OctaveSparseBooleandataL, size| Modifier | Constructor and Description |
|---|---|
|
OctaveBoolean(boolean[] data,
int... size) |
|
OctaveBoolean(int... size) |
private |
OctaveBoolean(OctaveBoolean o) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
get(int... pos)
Get the value.
|
protected boolean[] |
getDataA()
Returns the data store as an array.
|
String |
getPlainString(int pos)
Returns the string representation of the given plain position.
|
protected int |
initL(boolean[] data,
int size) |
protected it.unimi.dsi.fastutil.booleans.BooleanArrayList |
newL(int size)
Returns a new data store with given size
and entries carrying the default value.
|
void |
set(boolean value,
int... pos)
Set the value resizing by need.
|
void |
setPlain(boolean value,
int pos)
Set the value assuming resize is not necessary.
|
void |
setPlain(String value,
int pos)
Sets the entry with plain position
pos
to value parsing the string value. |
OctaveBoolean |
shallowCopy()
Make a shallow copy of this object.
|
dataSize, equals, getSize, getSizeLength, hashCode, main, pos2ind, resizeUppublic OctaveBoolean(int... size)
size - public OctaveBoolean(boolean[] data,
int... size)
data - size - private OctaveBoolean(OctaveBoolean o)
protected final it.unimi.dsi.fastutil.booleans.BooleanArrayList newL(int size)
AbstractGenericMatrixnewL in class AbstractGenericMatrix<boolean[],it.unimi.dsi.fastutil.booleans.BooleanArrayList>protected final int initL(boolean[] data,
int size)
initL in class AbstractGenericMatrix<boolean[],it.unimi.dsi.fastutil.booleans.BooleanArrayList>protected boolean[] getDataA()
AbstractGenericMatrixgetDataA in class AbstractGenericMatrix<boolean[],it.unimi.dsi.fastutil.booleans.BooleanArrayList>public final void set(boolean value,
int... pos)
value - pos - setPlain(boolean, int)public final void setPlain(boolean value,
int pos)
value - pos - set(boolean, int[])public final void setPlain(String value, int pos)
AbstractGenericMatrixpos
to value parsing the string value.
Note that this base class cannot provide setter methods
for java's primitive data types.setPlain in class AbstractGenericMatrix<boolean[],it.unimi.dsi.fastutil.booleans.BooleanArrayList>pos - see e.g. AbstractObjectMatrix.setPlain(String, int)
and OctaveDouble.setPlain(String, int)public final boolean get(int... pos)
pos - public final String getPlainString(int pos)
AbstractGenericMatrixgetPlainString in class AbstractGenericMatrix<boolean[],it.unimi.dsi.fastutil.booleans.BooleanArrayList>public OctaveBoolean shallowCopy()
OctaveObjectOctaveObject is returned from a getter,
e.g. on OctaveStruct or OctaveStruct,
a shallow copy is returned in order to follow the way octave behaves.
This method is used to make that copy.shallowCopy in interface OctaveObjectshallowCopy in class AbstractGenericMatrix<boolean[],it.unimi.dsi.fastutil.booleans.BooleanArrayList>Copyright © 2006–2018 Simuline Organization (l2r). All rights reserved.