Package soot.util

Class IntegerNumberer

  • All Implemented Interfaces:
    Numberer<Long>

    public class IntegerNumberer
    extends Object
    implements Numberer<Long>
    A numberer that associates each number with the corresponding Long object.
    • Constructor Detail

      • IntegerNumberer

        public IntegerNumberer()
    • Method Detail

      • add

        public void add​(Long o)
        Tells the numberer that a new object needs to be assigned a number.
        Specified by:
        add in interface Numberer<Long>
      • get

        public long get​(Long o)
        Should return the number that was assigned to object o that was previously passed as an argument to add().
        Specified by:
        get in interface Numberer<Long>
      • get

        public Long get​(long number)
        Should return the object that was assigned the number number.
        Specified by:
        get in interface Numberer<Long>
      • size

        public int size()
        Should return the number of objects that have been assigned numbers.
        Specified by:
        size in interface Numberer<Long>
      • remove

        public boolean remove​(Long o)
        Description copied from interface: Numberer
        Removes the number for a given object.
        Specified by:
        remove in interface Numberer<Long>
        Parameters:
        o - the element
        Returns:
        true if the removal was successful, false when not