Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #18497

Re: Question about HashMap and Map.Entry ...

From Robert Klemme <shortcutter@googlemail.com>
Newsgroups comp.lang.java.programmer
Subject Re: Question about HashMap and Map.Entry ...
Date 2012-09-01 11:06 +0200
Message-ID <aae1g9Fqc3U1@mid.individual.net> (permalink)
References (5 earlier) <BKP%r.91$R_4.31@newsfe05.iad> <slrnk3vo9j.u9l.avl@gamma.logic.tuwien.ac.at> <aab0asF8ntU1@mid.individual.net> <slrnk414ac.u9l.avl@gamma.logic.tuwien.ac.at> <rh70s.266$qS5.140@newsfe23.iad>

Show all headers | View raw


On 08/31/2012 08:22 PM, Daniel Pitts wrote:

> The real reason IMHO to use "long" over "Long", is that Long can be
> null, and sometimes that just doesn't make any sense semantically. The
> fact that it tends to be faster and use less memory is just a benefit.
>
> Same goes for all primitives vs primitive wrappers.

Definitively agree.  I mentioned it only as an additional benefit. 
Another reason to use object types is of course that the data structure 
is a generic one (such as keys or values in a Map) so there is no other 
option. :-)

Kind regards

	robert

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Question about HashMap and Map.Entry ... Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-08-30 17:39 +0000
  Re: Question about HashMap and Map.Entry ... markspace <-@.> - 2012-08-30 10:46 -0700
    Re: Question about HashMap and Map.Entry ... Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-08-30 11:15 -0700
      Re: Question about HashMap and Map.Entry ... Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-08-30 19:24 +0000
        Re: Question about HashMap and Map.Entry ... Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-08-30 19:32 +0000
          Re: Question about HashMap and Map.Entry ... Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-08-30 13:08 -0700
            Re: Question about HashMap and Map.Entry ... Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-08-30 21:55 +0000
              Re: Question about HashMap and Map.Entry ... Robert Klemme <shortcutter@googlemail.com> - 2012-08-31 07:27 +0200
                Re: Question about HashMap and Map.Entry ... Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-08-31 10:26 +0000
                Re: Question about HashMap and Map.Entry ... Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-08-31 11:22 -0700
                Re: Question about HashMap and Map.Entry ... Robert Klemme <shortcutter@googlemail.com> - 2012-09-01 11:06 +0200
        Re: Question about HashMap and Map.Entry ... markspace <-@.> - 2012-08-30 14:30 -0700
          Re: Question about HashMap and Map.Entry ... Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-08-30 22:42 +0000
        Re: Question about HashMap and Map.Entry ... markspace <-@.> - 2012-08-30 14:34 -0700
  Re: Question about HashMap and Map.Entry ... Lew <lewbloch@gmail.com> - 2012-08-30 13:42 -0700
    Re: Question about HashMap and Map.Entry ... Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-08-30 22:34 +0000

csiph-web