public final class OctaveCell extends AbstractObjectMatrix<OctaveObject> implements OctaveObject
| Modifier and Type | Field and Description |
|---|---|
private static OctaveObject |
DEFAULT_VALUE
For some reason, the default value is not stored as such,
but as a
null value. |
dataL, size| Modifier | Constructor and Description |
|---|---|
|
OctaveCell()
Deprecated.
use: new OctaveCell(0, 0)
|
private |
OctaveCell(AbstractGenericMatrix<OctaveObject[],it.unimi.dsi.fastutil.objects.ObjectArrayList<OctaveObject>> o) |
|
OctaveCell(int... size) |
| Modifier and Type | Method and Description |
|---|---|
<T extends OctaveObject> |
get(Class<T> castClass,
int... pos) |
OctaveObject |
get(int... pos)
Get the value.
|
void |
set(OctaveObject value,
int... pos)
Set the value resizing by need.
|
OctaveCell |
shallowCopy()
Make a shallow copy of this object.
|
getDataA, getPlainString, initL, newL, setPlain, setPlaindataSize, equals, getSize, getSizeLength, hashCode, main, pos2ind, resizeUpprivate static final OctaveObject DEFAULT_VALUE
null value.
Thus both in methods set(OctaveObject, int[])
and in get(int[]), the value must be reconstructed.
**** The reason for that, i cannot figure out.
Instead I would pressume, that null
is translated into [],
as elsewhere in octave's java-interface.@Deprecated public OctaveCell()
public OctaveCell(int... size)
size - private OctaveCell(AbstractGenericMatrix<OctaveObject[],it.unimi.dsi.fastutil.objects.ObjectArrayList<OctaveObject>> o)
public void set(OctaveObject value, int... pos)
AbstractObjectMatrixset in class AbstractObjectMatrix<OctaveObject>AbstractObjectMatrix.setPlain(Object, int)public OctaveObject get(int... pos)
AbstractObjectMatrixget in class AbstractObjectMatrix<OctaveObject>public <T extends OctaveObject> T get(Class<T> castClass, int... pos)
T - pos - castClass - Class to cast toOctaveClassCastException - if the object can not be cast to a castClasspublic OctaveCell 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<OctaveObject[],it.unimi.dsi.fastutil.objects.ObjectArrayList<OctaveObject>>Copyright © 2006–2018 Simuline Organization (l2r). All rights reserved.