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 boolean
equals(Object obj)
String
getString()
Returns the string represented by this object.int
hashCode()
void
setString(String string)
OctaveString
shallowCopy()
Make a shallow copy of this object.String
toString()
-
-
-
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:OctaveObject
Make a shallow copy of this object. In general when anOctaveObject
is returned from a getter, e.g. onOctaveStruct
orOctaveStruct
, a shallow copy is returned in order to follow the way octave behaves. This method is used to make that copy.- Specified by:
shallowCopy
in interfaceOctaveObject
- Returns:
- a shallow copy of this
-
-