Class MatlabVariable


  • public final class MatlabVariable
    extends java.lang.Object
    Represents 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 by name.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)
      Returns true if and only if obj is a MatlabVariable and has the same name as this variable.
      java.lang.String getName()
      The name of this variable.
      int hashCode()
      Returns a hash code consistent with equals(java.lang.Object).
      java.lang.String toString()
      Returns a brief description of this variable.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MatlabVariable

        public MatlabVariable​(java.lang.String name)
        Constructs a representation of a MATLAB variable with the name specified by name.
        Parameters:
        name -
        Throws:
        java.lang.IllegalArgumentException - if name is not a valid MATLAB variable name
    • 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:
        toString in class java.lang.Object
        Returns:
      • equals

        public boolean equals​(java.lang.Object obj)
        Returns true if and only if obj is a MatlabVariable and has the same name as this variable.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj -
        Returns:
      • hashCode

        public int hashCode()
        Returns a hash code consistent with equals(java.lang.Object).
        Overrides:
        hashCode in class java.lang.Object
        Returns: