def test_getvalues (self): """ """ ltset = lt.newList ('SINGLE_LINKED_LIST') ltset = ht.valueSet (self.table) iterator = it.newIterator (ltset) while it.hasNext (iterator): info = it.next (iterator) print (info)
def test_getvalues(self): """ """ table = ht.newMap(capacity=17, maptype='PROBING') ht.put(table, '1', 'title1', self.comparekeys) ht.put(table, '2', 'title2', self.comparekeys) ht.put(table, '3', 'title3', self.comparekeys) ht.put(table, '4', 'title4', self.comparekeys) ht.put(table, '5', 'title5', self.comparekeys) ht.put(table, '6', 'title6', self.comparekeys) ltset = lt.newList('SINGLE_LINKED') ltset = ht.valueSet(table) iterator = it.newIterator(ltset) while it.hasNext(iterator): info = it.next(iterator) print(info)
def test_getvalues (self): """ """ table = ht.newMap (capacity= 7, maptype='CHAINING') ht.put (table, 'book1', 'title1', self.compareentryfunction) ht.put (table, 'book2', 'title2', self.compareentryfunction) ht.put (table, 'book3', 'title3', self.compareentryfunction) ht.put (table, 'book4', 'title4', self.compareentryfunction) ht.put (table, 'book5', 'title5', self.compareentryfunction) ht.put (table, 'book6', 'title6', self.compareentryfunction) ltset = lt.newList ('SINGLE_LINKED_LIST') ltset = ht.valueSet (table) iterator = it.newIterator (ltset) while it.hasNext (iterator): info = it.next (iterator) print (info)
def test_getvalues(self): """ """ capacity = 10 table = ht.newMap(capacity, maptype='PROBING', comparefunction=self.comparekeys) ht.put(table, '1', 'title1') ht.put(table, '2', 'title2') ht.put(table, '11', 'title3') ht.put(table, '3', 'title4') ht.put(table, '12', 'title5') ht.put(table, '5', 'title6') ltset = lt.newList('SINGLE_LINKED_LIST') ltset = ht.valueSet(table) iterator = it.newIterator(ltset) while it.hasNext(iterator): info = it.next(iterator) print(info)
def valueSet(map): """ Retorna una lista con todos los valores de la tabla de hash """ return ht.valueSet(map)