01: package net.sf.mockcreator;
02:
03: import java.util.Map;
04: import java.util.Set;
05:
06: public interface Complex {
07: int[] getArr(Set set2D);
08:
09: int[][] getArr2D(Set set);
10:
11: Set getSet(int[][] arr2d);
12:
13: Set getSet2D(int[] arr);
14:
15: public int getBad(Set set);
16:
17: public int getBad(Map set);
18:
19: public static class BadHash {
20: public int id;
21: public int hash;
22:
23: public BadHash(int id, int hash) {
24: this .id = id;
25: this .hash = hash;
26: }
27:
28: public String toString() {
29: return "" + hashCode() + "/" + id;
30: }
31:
32: public int hashCode() {
33: return hash;
34: }
35:
36: public boolean equals(Object o) {
37: if (o == this ) {
38: return true;
39: }
40:
41: if (!(o instanceof BadHash)) {
42: return false;
43: }
44:
45: return id == ((BadHash) o).id;
46: }
47: }
48: }
|