Class Parameter

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class Parameter
    extends java.lang.Object
    implements java.lang.Cloneable, java.io.Serializable
    Represents a name-value parameter
    Author:
    Joao Dias
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Parameter​(java.lang.String parameterName, java.lang.Object value)
      Creates a new Parameter
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object clone()
      Creates a new copy of the Parameter
      java.lang.String GetName()
      Gets the Parameter's name
      java.lang.Object GetValue()
      Gets the Parameter's value
      java.lang.String toString()
      Converts the Parameter to a String
      • Methods inherited from class java.lang.Object

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

      • Parameter

        public Parameter​(java.lang.String parameterName,
                         java.lang.Object value)
        Creates a new Parameter
        Parameters:
        parameterName - - the name of the parameter
        value - - the value of the parameter
    • Method Detail

      • GetName

        public java.lang.String GetName()
        Gets the Parameter's name
        Returns:
        the parameter's name
      • GetValue

        public java.lang.Object GetValue()
        Gets the Parameter's value
        Returns:
        - the parameter's value
      • toString

        public java.lang.String toString()
        Converts the Parameter to a String
        Overrides:
        toString in class java.lang.Object
        Returns:
        the converted String
      • clone

        public java.lang.Object clone()
        Creates a new copy of the Parameter
        Overrides:
        clone in class java.lang.Object
        Returns:
        a new Parameter equal to this one