Package eu.simuline.octave.type
Class OctaveString
- java.lang.Object
-
- eu.simuline.octave.type.OctaveString
-
- All Implemented Interfaces:
OctaveObject
public final class OctaveString extends Object implements OctaveObject
Represents an octave string.
-
-
Constructor Summary
Constructors Constructor Description OctaveString(String string)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetString()Returns the string represented by this object.inthashCode()voidsetString(String string)OctaveStringshallowCopy()Make a shallow copy of this object.StringtoString()
-
-
-
Field Detail
-
PRIME
private static final int PRIME
- See Also:
- Constant Field Values
-
value
private String value
-
-
Constructor Detail
-
OctaveString
public OctaveString(String string)
- Parameters:
string-
-
-
Method Detail
-
getString
public String getString()
Returns the string represented by this object.- Returns:
- the string represented by this object.
-
setString
public void setString(String string)
- Parameters:
string- the string to set
-
shallowCopy
public OctaveString shallowCopy()
Description copied from interface:OctaveObjectMake a shallow copy of this object. In general when anOctaveObjectis returned from a getter, e.g. onOctaveStructorOctaveStruct, a shallow copy is returned in order to follow the way octave behaves. This method is used to make that copy.- Specified by:
shallowCopyin interfaceOctaveObject- Returns:
- a shallow copy of this
-
-