-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCalcHash.java
More file actions
41 lines (25 loc) · 838 Bytes
/
CalcHash.java
File metadata and controls
41 lines (25 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package hash;
import java.lang.reflect.Method;
import hash.HashClass;
public class CalcHash {
public static void main(String[] args) {
// TODO Auto-generated method stub
HashClass obj = new HashClass();
String ftseKey="12345";
String indexCode="EMTX_AG_G";
String value="123.98723";
StringBuffer combinedKey=new StringBuffer(ftseKey).append(indexCode);
obj.addKey( combinedKey.hashCode(), value);
System.out.println(obj.v.keySet());
Class reflectionObj = HashClass.class;
Method[] methodArray= reflectionObj.getMethods();
System.out.println(reflectionObj.getSuperclass());
for(Method m : methodArray){
Class[] paramTypes= m.getParameterTypes();
System.out.println( m.getName() );
for(Class p : paramTypes){
System.out.println( "\t"+p.getName() );
}
}
}
}