Package soot.util

Interface INumberedMap<K extends Numberable,​V>

  • Type Parameters:
    K - The common type of the keys
    V - The common type of the values
    All Known Implementing Classes:
    LargeNumberedMap, SmallNumberedMap

    public interface INumberedMap<K extends Numberable,​V>
    Common interface for numbered maps
    Author:
    Steven Arzt
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      V get​(K key)
      Returns the value associated with a given key.
      Iterator<K> keyIterator()
      Returns an iterator over the keys with non-null values.
      boolean put​(K key, V value)
      Associates a value with a key.
      void remove​(K key)
      Removes the given key from the map
    • Method Detail

      • put

        boolean put​(K key,
                    V value)
        Associates a value with a key.
        Parameters:
        key - The key
        value - The value
        Returns:
        True if the association was new, false if the same value was already associated with the given key before
      • get

        V get​(K key)
        Returns the value associated with a given key.
        Parameters:
        key - The key
        Returns:
        The value associated with the given key
      • keyIterator

        Iterator<K> keyIterator()
        Returns an iterator over the keys with non-null values.
        Returns:
        The iterator
      • remove

        void remove​(K key)
        Removes the given key from the map
        Parameters:
        key - The key to be removed