Package soot.util

Class LargeNumberedMap<K extends Numberable,​V>

  • All Implemented Interfaces:
    INumberedMap<K,​V>

    public final class LargeNumberedMap<K extends Numberable,​V>
    extends Object
    implements INumberedMap<K,​V>
    A java.util.Map with Numberable objects as the keys. This one is designed for maps close to the size of the universe. For smaller maps, use SmallNumberedMap.
    Author:
    Ondrej Lhotak
    • Constructor Detail

    • Method Detail

      • put

        public boolean put​(K key,
                           V value)
        Description copied from interface: INumberedMap
        Associates a value with a key.
        Specified by:
        put in interface INumberedMap<K extends Numberable,​V>
        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

        public V get​(K key)
        Description copied from interface: INumberedMap
        Returns the value associated with a given key.
        Specified by:
        get in interface INumberedMap<K extends Numberable,​V>
        Parameters:
        key - The key
        Returns:
        The value associated with the given key
      • remove

        public void remove​(K key)
        Description copied from interface: INumberedMap
        Removes the given key from the map
        Specified by:
        remove in interface INumberedMap<K extends Numberable,​V>
        Parameters:
        key - The key to be removed