Interface HashSetModifiableDBIDs

    • Method Detail

      • retainAll

        boolean retainAll​(DBIDs set)
        Retain all elements that also are in the second set.
        Parameters:
        set - second set
        Returns:
        true when modified
      • iter

        DBIDMIter iter()
        Description copied from interface: DBIDs
        Get a DBID iterator (a more efficient API).

        Example:

         
         for(DBIDIter iter = ids.iter(); iter.valid(); iter.advance()) {
           NumberVector vec = relation.get(iter); // iter is a temporary object reference
         }
         
         
        Specified by:
        iter in interface DBIDs
        Specified by:
        iter in interface ModifiableDBIDs
        Returns:
        iterator