Interface IFreeMap<K,​V>

  • All Known Implementing Classes:
    Extensions, LangMap

    public interface IFreeMap<K,​V>
    Interface for all freeform maps (Extensions and LangMaps) in xAPI Statements.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      V get​(String key)
      Retrieve value at String key
      V get​(K key)
      Retrieve value at key
      Set<K> getKeys()
      Returns a Set of all the keys
      Map<K,​V> getMap()
      Returns the full Map of the key-value pairs
      void put​(String key, V value)
      Sets an entry in the map with a String key
      void put​(K key, V value)
      Sets an entry in the map
      void remove​(String key)
      Remove a value at the String key
      void remove​(K key)
      Remove a value at the key
    • Method Detail

      • put

        void put​(K key,
                 V value)
        Sets an entry in the map
        Parameters:
        key -
        value -
      • put

        void put​(String key,
                 V value)
        Sets an entry in the map with a String key
        Parameters:
        key -
        value -
      • get

        V get​(K key)
        Retrieve value at key
        Parameters:
        key -
        Returns:
        The value at the key
      • get

        V get​(String key)
        Retrieve value at String key
        Parameters:
        key -
        Returns:
        The value at the key
      • remove

        void remove​(K key)
        Remove a value at the key
        Parameters:
        key -
      • remove

        void remove​(String key)
        Remove a value at the String key
        Parameters:
        key -
      • getKeys

        Set<K> getKeys()
        Returns a Set of all the keys
        Returns:
        Set of all the keys
      • getMap

        Map<K,​V> getMap()
        Returns the full Map of the key-value pairs
        Returns:
        The full Map