Package jline.util

Class NamedParam

java.lang.Object
jline.util.NamedParam
All Implemented Interfaces:
Serializable

public class NamedParam extends Object implements Serializable
A container for storing named parameters with string identifiers and object values.

This utility class provides a simple key-value pair specifically designed for parameter storage in configuration contexts. It's commonly used in distribution parameters, solver options, and other configurable components.

Since:
1.0
See Also:
  • Field Details

    • name

      protected String name
      The parameter name/identifier
    • value

      protected Object value
      The parameter value
  • Constructor Details

    • NamedParam

      public NamedParam(String name, Object value)
      Constructs a new named parameter with the specified name and value.
      Parameters:
      name - the parameter name/identifier
      value - the parameter value
  • Method Details

    • getValue

      public Object getValue()
      Returns the value of this named parameter.
      Returns:
      the parameter value