import java.util.*;

public class UseOfNonHashableClassInHashDataStructure {

	static HashMap<UseOfNonHashableClassInHashDataStructure, String> m = new HashMap<UseOfNonHashableClassInHashDataStructure, String>();

	public boolean equals(Object o) {
		return hashCode() == o.hashCode();
	}

	public static String add(UseOfNonHashableClassInHashDataStructure b,
			String s) {
		return m.put(b, s);
	}

	public static String get(UseOfNonHashableClassInHashDataStructure b) {
		return m.get(b);
	}
}

Add test case for use of non hashable class in hash data structure
Add test case for use of non hashable class in hash data structure


git-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@6214 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3
