Interface Context

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean containsKey​(java.lang.Object key)
      Indicates whether the specified key is in the context.
      java.lang.Object get​(java.lang.String key)
      Gets the value corresponding to the provided key from the context.
      java.lang.Object[] getKeys()
      Get all the keys for the values in the context.
      java.lang.Object put​(java.lang.String key, java.lang.Object value)
      Adds a name/value pair to the context.
      java.lang.Object remove​(java.lang.Object key)
      Removes the value associated with the specified key from the context.
    • Method Detail

      • put

        java.lang.Object put​(java.lang.String key,
                             java.lang.Object value)
        Adds a name/value pair to the context.
        Parameters:
        key - The name to key the provided value with.
        value - The corresponding value.
        Returns:
        The old object or null if there was no old object.
      • get

        java.lang.Object get​(java.lang.String key)
        Gets the value corresponding to the provided key from the context.
        Parameters:
        key - The name of the desired value.
        Returns:
        The value corresponding to the provided key.
      • containsKey

        boolean containsKey​(java.lang.Object key)
        Indicates whether the specified key is in the context.
        Parameters:
        key - The key to look for.
        Returns:
        Whether the key is in the context.
      • getKeys

        java.lang.Object[] getKeys()
        Get all the keys for the values in the context.
        Returns:
        All the keys for the values in the context.
      • remove

        java.lang.Object remove​(java.lang.Object key)
        Removes the value associated with the specified key from the context.
        Parameters:
        key - The name of the value to remove.
        Returns:
        The value that the key was mapped to, or null if unmapped.