/** * Main program. * * @param array $args Command-line arguments. * @return integer Zero on succes; non-zero on failure. */ public static function main($args) { printf("Demonstration program number 4.\n"); $status = 0; ChainedHashTable::main($args); ChainedScatterTable::main($args); OpenScatterTable::main($args); OpenScatterTableV2::main($args); return $status; }
return new ChainedScatterTable_Iterator($this); } /** * Compares this chained hash table with the specified comparable object. * This method is not implemented. * * @param object IComparable $arg * The comparable object to which this chained hash table is compared. */ protected function compareTo(IComparable $arg) { throw new MethodNotImplementedException(); } /** * Main program. * * @param array $args Command-line arguments. * @return integer Zero on success; non-zero on failure. */ public static function main($args) { printf("ChainedScatterTable main program.\n"); $status = 0; $hashTable = new ChainedScatterTable(57); AbstractHashTable::test($hashTable); return $status; } } if (realpath($argv[0]) == realpath(__FILE__)) { exit(ChainedScatterTable::main(array_slice($argv, 1))); }