Class MathVariableDefinitionInfo

java.lang.Object
com.myscript.iink.MathVariableDefinitionInfo

public class MathVariableDefinitionInfo extends Object
Represents a math variable definition info.
Since:
4.2
  • Field Details

    • value

      public double value
      The value associated with the definition.
    • sourceType

      @NotNull public @NotNull MathVariableSourceType sourceType
      The source type associated with the definition.
    • blockId

      @NotNull public @NotNull String blockId
      The block id the variable is: used by (for API), defined by (for BLOCK) or empty (for API_GLOBAL).
  • Constructor Details

    • MathVariableDefinitionInfo

      public MathVariableDefinitionInfo(@NotNull @NotNull MathVariableDefinitionInfo other)
      Copy constructor.
      Parameters:
      other - the math variable definition info to copy.
    • MathVariableDefinitionInfo

      public MathVariableDefinitionInfo(double value, @NotNull @NotNull MathVariableSourceType sourceType, @NotNull @NotNull String blockId)
      Constructs a MathVariableDefinitionInfo
      Parameters:
      value - the variable value.
      sourceType - the variable sourceType.
      blockId - the variable blockId.
  • Method Details

    • equals

      public boolean equals(@Nullable @Nullable Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      @NotNull public final @NotNull String toString()
      Overrides:
      toString in class Object