Enum TorchType

java.lang.Object
java.lang.Enum<TorchType>
deepboof.io.torch7.TorchType
All Implemented Interfaces:
Serializable, Comparable<TorchType>

public enum TorchType extends Enum<TorchType>
Enumerated type for the different types of Torch data structures. Values derived from Torch source code.
  • Enum Constant Details

    • NIL

      public static final TorchType NIL
    • NUMBER

      public static final TorchType NUMBER
    • STRING

      public static final TorchType STRING
    • TABLE

      public static final TorchType TABLE
    • TORCH

      public static final TorchType TORCH
    • BOOLEAN

      public static final TorchType BOOLEAN
    • FUNCTION

      public static final TorchType FUNCTION
    • RECUR_FUNCTION

      public static final TorchType RECUR_FUNCTION
    • LEGACY_RECUR_FUNCTION

      public static final TorchType LEGACY_RECUR_FUNCTION
  • Method Details

    • values

      public static TorchType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static TorchType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • valueToType

      public static TorchType valueToType(int value)
    • getValue

      public int getValue()