java.util
Class HashCodeNotOverriddenException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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.


Constructor Summary
HashCodeNotOverriddenException()
          Constructs a new instance of this class with its walkback filled in.
HashCodeNotOverriddenException(String detailMessage)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, nullStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, println
 

Constructor Detail

HashCodeNotOverriddenException

public HashCodeNotOverriddenException()
Constructs a new instance of this class with its walkback filled in.


HashCodeNotOverriddenException

public HashCodeNotOverriddenException(String detailMessage)