Class CommandParameter

    • Method Detail

      • name

        public final String name()

        The name of a specific parameter used in a command and command execution.

        Returns:
        The name of a specific parameter used in a command and command execution.
      • value

        public final CommandParameterValue value()

        The value used to describe the command. When you assign a value to a parameter, it will override any default value that you had already specified.

        Returns:
        The value used to describe the command. When you assign a value to a parameter, it will override any default value that you had already specified.
      • defaultValue

        public final CommandParameterValue defaultValue()

        The default value used to describe the command. This is the value assumed by the parameter if no other value is assigned to it.

        Returns:
        The default value used to describe the command. This is the value assumed by the parameter if no other value is assigned to it.
      • description

        public final String description()

        The description of the command parameter.

        Returns:
        The description of the command parameter.
      • hashCode

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

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)