PARCHashCode parcSortedList_HashCode(const PARCSortedList *instance) { PARCHashCode result = parcLinkedList_HashCode(instance->list); return result; }
PARCHashCode parcHashMap_HashCode(const PARCHashMap *hashMap) { parcHashMap_OptionalAssertValid(hashMap); PARCHashCode result = 0; for (unsigned int i = 0; i < hashMap->capacity; i++) { if (hashMap->buckets[i] != NULL) { result += parcLinkedList_HashCode(hashMap->buckets[i]); } } return result; }