Implementato HashCode Dictionary via LinearProbing (Open Adress) e Chaining.
This commit is contained in:
18
exceptions/HashExceptionKey.java
Normal file
18
exceptions/HashExceptionKey.java
Normal file
@@ -0,0 +1,18 @@
|
||||
package exceptions;
|
||||
|
||||
/**
|
||||
* Signals that the boundaries of a data structure have been illegally
|
||||
* traversed (e.g. past the end of a list).
|
||||
* @author Roberto Tamassia
|
||||
*/
|
||||
//Copyright (c) 2003 Brown University, Providence, RI
|
||||
//Additional modifications and methods by xgiovio
|
||||
|
||||
public class HashExceptionKey extends RuntimeException {
|
||||
public HashExceptionKey(String message) {
|
||||
super (message);
|
||||
}
|
||||
public HashExceptionKey() {
|
||||
super ("Please use a string key or define an hash function");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user