Class Parameters


  • public class Parameters
    extends java.lang.Object
    Created by shingai.manyiwa on 12/06/2017.
    • Constructor Summary

      Constructors 
      Constructor Description
      Parameters()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(java.lang.String key, int value)
      Adds the value with the specified key.
      void add​(java.lang.String key, java.lang.String value)
      Adds the value with the specified key.
      boolean containsKey​(java.lang.String key)
      Determines whether the Parameters contains the specified key.
      int count()
      The number of items held.
      java.lang.String getValue​(java.lang.String key)
      .
      boolean isEmpty()
      Determines whether the Parameters contains any items.
      void remove​(java.lang.String key)
      Removes the value with the specified key.
      java.util.List<Parameter> toList()
      Puts all objects into a list and is returned.
      • Methods inherited from class java.lang.Object

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

      • Parameters

        public Parameters()
    • Method Detail

      • add

        public void add​(java.lang.String key,
                        java.lang.String value)
        Adds the value with the specified key.
        Parameters:
        key - Key.
        value - Value.
      • add

        public void add​(java.lang.String key,
                        int value)
        Adds the value with the specified key.
        Parameters:
        key - Key.
        value - Value.
      • remove

        public void remove​(java.lang.String key)
        Removes the value with the specified key.
        Parameters:
        key - Key.
      • count

        public int count()
        The number of items held.
        Returns:
        Size of the data structure.
      • isEmpty

        public boolean isEmpty()
        Determines whether the Parameters contains any items.
        Returns:
        true if empty.
      • containsKey

        public boolean containsKey​(java.lang.String key)
        Determines whether the Parameters contains the specified key.
        Parameters:
        key - Key value
        Returns:
        true if the key is held within the data structure.
      • getValue

        public java.lang.String getValue​(java.lang.String key)
        . Gets the value associated with the specified key.ParameterKeys for possible key values.
        Parameters:
        key - value
        Returns:
        String of the value if contained within Parameters, else null.
      • toList

        public java.util.List<Parameter> toList()
        Puts all objects into a list and is returned.
        Returns:
        List