Class FastutilIntOpenHashSetModifiableDBIDs

    • Constructor Detail

      • FastutilIntOpenHashSetModifiableDBIDs

        protected FastutilIntOpenHashSetModifiableDBIDs​(int size)
        Constructor.
        Parameters:
        size - Initial size
      • FastutilIntOpenHashSetModifiableDBIDs

        protected FastutilIntOpenHashSetModifiableDBIDs()
        Constructor.
      • FastutilIntOpenHashSetModifiableDBIDs

        protected FastutilIntOpenHashSetModifiableDBIDs​(DBIDs existing)
        Constructor.
        Parameters:
        existing - Existing IDs
    • Method Detail

      • addDBIDs

        public boolean addDBIDs​(DBIDs ids)
        Description copied from interface: ModifiableDBIDs
        Add DBIDs to collection.
        Specified by:
        addDBIDs in interface ModifiableDBIDs
        Parameters:
        ids - IDs to add.
        Returns:
        true if the collection changed.
      • removeDBIDs

        public boolean removeDBIDs​(DBIDs ids)
        Description copied from interface: ModifiableDBIDs
        Remove DBIDs from collection.
        Specified by:
        removeDBIDs in interface ModifiableDBIDs
        Parameters:
        ids - IDs to remove.
        Returns:
        true if the collection changed.
      • add

        public boolean add​(DBIDRef e)
        Description copied from interface: ModifiableDBIDs
        Add a single DBID to the collection.
        Specified by:
        add in interface ModifiableDBIDs
        Parameters:
        e - ID to add
        Returns:
        true if the collection changed.
      • remove

        public boolean remove​(DBIDRef o)
        Description copied from interface: ModifiableDBIDs
        Remove a single DBID from the collection.
        Specified by:
        remove in interface ModifiableDBIDs
        Parameters:
        o - ID to remove
        Returns:
        true if the collection changed.
      • size

        public int size()
        Description copied from interface: DBIDs
        Retrieve the collection / data size.
        Specified by:
        size in interface DBIDs
        Returns:
        collection size
      • isEmpty

        public boolean isEmpty()
        Description copied from interface: DBIDs
        Test for an empty DBID collection.
        Specified by:
        isEmpty in interface DBIDs
        Returns:
        true when empty.
      • contains

        public boolean contains​(DBIDRef o)
        Description copied from interface: DBIDs
        Test whether an ID is contained.
        Specified by:
        contains in interface DBIDs
        Parameters:
        o - object to test
        Returns:
        true when contained
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • pop

        public DBIDVar pop​(DBIDVar outvar)
        Description copied from interface: ModifiableDBIDs
        Pop (get and remove) one DBID from the set, into a variable.
        Specified by:
        pop in interface ModifiableDBIDs
        Parameters:
        outvar - Output variable
        Returns:
        Always outvar, for inlining