Class JitnnConfig.Option<T>

java.lang.Object
ai.beestream.jitnn.JitnnConfig.Option<T>
Type Parameters:
T - the value type
Enclosing class:
JitnnConfig

public static final class JitnnConfig.Option<T> extends Object
One option: its key, type, default and description.
  • Method Details

    • key

      public String key()
      The system property, e.g. jitnn.plan.cache.
    • type

      public Class<T> type()
      The value type: Boolean, Integer, Long, Double or String.
    • defaultValue

      public T defaultValue()
      The default, or null when it depends on the machine or on other options.
    • section

      public JitnnConfig.Section section()
      The section the documentation lists this option in.
    • defaultText

      public String defaultText()
      The default as the documentation states it (Markdown).
    • choices

      public List<String> choices()
      The accepted values of an option with a fixed set of them, else an empty list.
    • description

      public String description()
      What the option does (Markdown).
    • changeableAtRunTime

      public boolean changeableAtRunTime()
      Whether the option may change after the runtime has started (JitnnConfig.change(JitnnConfig.Option, T)).
    • parse

      public T parse(String value)
      Parses a property value, failing with a message that names the key.
    • toString

      public String toString()
      Overrides:
      toString in class Object