Re: Hashcode of primitive types

From: Adam (NOTFORSPAM.a_szczeblewski_at_poczta.onet.pl)
Date: 01/29/04


Date: Thu, 29 Jan 2004 16:26:25 +0100


> Hello!
>
> What is the hashcode of int, double or float?

Primitives don't have hashcodes.
Objects do.

Adam



Relevant Pages

  • Re: Hashcode of primitive types
    ... > What is the hashcode of int, double or float? ... No address munging in use. ...
    (comp.lang.java.programmer)
  • Re: Hashcode of primitive types
    ... >> What is the hashcode of int, double or float? ... HTH ...
    (comp.lang.java.programmer)
  • Re: A problem...
    ... >> public int hashCode() ... > It seems hashCode only works for objects and not primitives! ...
    (comp.lang.java.programmer)