Class IntList

java.lang.Object
org.apache.bcel.verifier.statics.IntList

public class IntList extends Object
A small utility class representing a set of basic int values.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Set<Integer>
    The ints are stored as Integer objects in a hash set so that contains(int) is O(1), not a linear scan.
  • Constructor Summary

    Constructors
    Constructor
    Description
    This constructor creates an empty list.
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) void
    add(int i)
    Adds an element to the list.
    (package private) boolean
    contains(int i)
    Tests if the specified int is already in the list.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • set

      private final Set<Integer> set
      The ints are stored as Integer objects in a hash set so that contains(int) is O(1), not a linear scan.
  • Constructor Details

    • IntList

      IntList()
      This constructor creates an empty list.
  • Method Details

    • add

      void add(int i)
      Adds an element to the list.
    • contains

      boolean contains(int i)
      Tests if the specified int is already in the list.