Class ArrayBitSet

    • Constructor Detail

      • ArrayBitSet

        public ArrayBitSet​(int count)
        Initializes a new instance of the ArrayBitSet class.
        Parameters:
        count - The number of items in the set.
    • Method Detail

      • contains

        public boolean contains​(int id)
        Checks whether the id is already in the set.
        Specified by:
        contains in interface BitSet
        Parameters:
        id - The identifier.
        Returns:
        True if the identifier is in the set.
      • add

        public void add​(int id)
        Adds the id to the set.
        Specified by:
        add in interface BitSet
        Parameters:
        id - The id to add
      • remove

        public void remove​(int id)
        Removes a id from the set.
        Specified by:
        remove in interface BitSet
        Parameters:
        id - The id to remove
      • clear

        public void clear()
        Clears the set.
        Specified by:
        clear in interface BitSet