java.util
Class HashCodeNotOverriddenException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.util.HashCodeNotOverriddenException
public class HashCodeNotOverriddenException
- extends RuntimeException
This runtime exception is thrown if you put an object in a java.util.HashSet
that has inherited its hashCode() method directly from java.lang.Object. On
this VM you have to override the hashCode method and it must return an
integer in the range -(2^29) to (2^29)-1. The same applies to objects that
are to be used as keys in a java.util.HashMap. The String and Integer
classes already have a suitable implementation of the hashCode() method.
HashCodeNotOverriddenException
public HashCodeNotOverriddenException()
- Constructs a new instance of this class with its walkback filled in.
HashCodeNotOverriddenException
public HashCodeNotOverriddenException(String detailMessage)