Package jline.util

Class NamedParam

  • All Implemented Interfaces:
    java.io.Serializable

    
    public class NamedParam
     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

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      NamedParam(String name, Object value) Constructs a new named parameter with the specified name and value.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Object getValue() Returns the value of this named parameter.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NamedParam

        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 Detail

      • getValue

         Object getValue()

        Returns the value of this named parameter.

        Returns:

        the parameter value