Package matlabcontrol.link
Class MatlabVariable
- java.lang.Object
-
- matlabcontrol.link.MatlabVariable
-
public final class MatlabVariable extends java.lang.ObjectRepresents a variable in MATLAB. The representation is not associated with a given session of MATLAB. An instance of this class with a given name does not mean that a variable with that name exists in any session of MATLAB.- Since:
- 4.2.0
-
-
Constructor Summary
Constructors Constructor Description MatlabVariable(java.lang.String name)Constructs a representation of a MATLAB variable with the name specified byname.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Returnstrueif and only ifobjis aMatlabVariableand has the same name as this variable.java.lang.StringgetName()The name of this variable.inthashCode()Returns a hash code consistent withequals(java.lang.Object).java.lang.StringtoString()Returns a brief description of this variable.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
The name of this variable.- Returns:
-
toString
public java.lang.String toString()
Returns a brief description of this variable. The exact details of this representation are unspecified and are subject to change.- Overrides:
toStringin classjava.lang.Object- Returns:
-
equals
public boolean equals(java.lang.Object obj)
Returnstrueif and only ifobjis aMatlabVariableand has the same name as this variable.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj-- Returns:
-
hashCode
public int hashCode()
Returns a hash code consistent withequals(java.lang.Object).- Overrides:
hashCodein classjava.lang.Object- Returns:
-
-