Package soot.util

Interface Numberer<E>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void add​(E o)
      Tells the numberer that a new object needs to be assigned a number.
      E get​(long number)
      Should return the object that was assigned the number number.
      long get​(E o)
      Should return the number that was assigned to object o that was previously passed as an argument to add().
      boolean remove​(E o)
      Removes the number for a given object.
      int size()
      Should return the number of objects that have been assigned numbers.
    • Method Detail

      • add

        void add​(E o)
        Tells the numberer that a new object needs to be assigned a number.
      • remove

        boolean remove​(E o)
        Removes the number for a given object.
        Parameters:
        o - the element
        Returns:
        true if the removal was successful, false when not
      • get

        long get​(E o)
        Should return the number that was assigned to object o that was previously passed as an argument to add().
      • get

        E get​(long number)
        Should return the object that was assigned the number number.
      • size

        int size()
        Should return the number of objects that have been assigned numbers.