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


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

Re: Is there a better way to group and sort objects?

From Eric Sosman <esosman@comcast-dot-net.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Is there a better way to group and sort objects?
Date 2018-08-08 10:31 -0400
Organization A noiseless patient Spider
Message-ID <pkeust$pia$1@dont-email.me> (permalink)
References (2 earlier) <pkeib2$9pv$1@dont-email.me> <pkejoq$ksf$1@news.albasani.net> <ac2eee07-9f11-486f-9cc4-a46a07121d87@googlegroups.com> <pkeqsl$vi3$1@dont-email.me> <e9c51947-c56b-4b35-8e20-2a8882150b86@googlegroups.com>

Show all headers | View raw


On 8/8/2018 9:47 AM, Eric Douglas wrote:
> On Wednesday, August 8, 2018 at 9:23:42 AM UTC-4, Eric Sosman wrote:
>> [...]
>>       (2) Concerning "unique object pointers," have you learned about the
>> equals() and hashCode() methods yet?  ;)
>>
> I tried writing an equals method but didn't seem useful if I have to call it manually, was hoping it could be used for such purpose as making the objects themselves the key to a map.  Is hashCode() supposed to be used for this purpose?  I thought that was always supposed to have a generated value unique for every object instance.

     Are you trolling?  You've been participating in this forum for
upwards of three years, and last year you said you'd been writing
Java "for probably about 10 years" -- and we're supposed to believe you
don't know what equals() and hashCode() are for?

     Benefit of the doubt: I guess it's just barely possible that after
eleven-ish (claimed) or three-plus (shown) years of Java involvement
you might actually be unfamiliar with the basics.  You have shown more
than once that your grasp of Java concepts is less than firm, and I have
speculated that you may be trying to write Java by "faking it" with an
extensive knowledge of other languages.  (I still consider that the most
likely explanation for your blunders, although the Troll Hypothesis is
beginning to gain credibility.)  But just in case you're not trolling,

	F E R   P E T E ' S   S A K E ,   R E A D   A   B O O K !

-- 
esosman@comcast-dot-net.invalid
Eight hundred ninety-six days to go.

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


Thread

Is there a better way to group and sort objects? Eric Douglas <e.d.programmer@gmail.com> - 2018-08-07 06:00 -0700
  Re: Is there a better way to group and sort objects? Eric Sosman <esosman@comcast-dot-net.invalid> - 2018-08-07 09:44 -0400
    Re: Is there a better way to group and sort objects? Eric Sosman <esosman@comcast-dot-net.invalid> - 2018-08-07 11:33 -0400
    Re: Is there a better way to group and sort objects? Eric Douglas <e.d.programmer@gmail.com> - 2018-08-07 10:22 -0700
      Re: Is there a better way to group and sort objects? Eric Sosman <esosman@comcast-dot-net.invalid> - 2018-08-07 14:16 -0400
        Re: Is there a better way to group and sort objects? Eric Sosman <esosman@comcast-dot-net.invalid> - 2018-08-07 14:36 -0400
        Re: Is there a better way to group and sort objects? Eric Douglas <e.d.programmer@gmail.com> - 2018-08-07 12:13 -0700
          Re: Is there a better way to group and sort objects? Eric Sosman <esosman@comcast-dot-net.invalid> - 2018-08-07 16:00 -0400
  Re: Is there a better way to group and sort objects? Martin Gregorie <martin@mydomain.invalid> - 2018-08-08 08:20 +0000
    Re: Is there a better way to group and sort objects? Eric Sosman <esosman@comcast-dot-net.invalid> - 2018-08-08 06:57 -0400
      Re: Is there a better way to group and sort objects? Martin Gregorie <martin@mydomain.invalid> - 2018-08-08 11:08 +0000
      Re: Is there a better way to group and sort objects? Martin Gregorie <martin@mydomain.invalid> - 2018-08-08 11:22 +0000
        Re: Is there a better way to group and sort objects? Eric Sosman <esosman@comcast-dot-net.invalid> - 2018-08-08 07:45 -0400
          Re: Is there a better way to group and sort objects? Martin Gregorie <martin@mydomain.invalid> - 2018-08-08 14:12 +0000
        Re: Is there a better way to group and sort objects? Eric Douglas <e.d.programmer@gmail.com> - 2018-08-08 05:50 -0700
          Re: Is there a better way to group and sort objects? Eric Sosman <esosman@comcast-dot-net.invalid> - 2018-08-08 09:23 -0400
            Re: Is there a better way to group and sort objects? Eric Douglas <e.d.programmer@gmail.com> - 2018-08-08 06:47 -0700
              Re: Is there a better way to group and sort objects? Eric Sosman <esosman@comcast-dot-net.invalid> - 2018-08-08 10:31 -0400
                Re: Is there a better way to group and sort objects? Eric Douglas <e.d.programmer@gmail.com> - 2018-08-08 08:24 -0700
          Re: Is there a better way to group and sort objects? Robert Klemme <shortcutter@googlemail.com> - 2018-08-14 14:06 +0200
            Re: Is there a better way to group and sort objects? Eric Douglas <e.d.programmer@gmail.com> - 2018-08-14 05:49 -0700
  Re: Is there a better way to group and sort objects? Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2018-08-09 16:06 +0200
    Re: Is there a better way to group and sort objects? Eric Douglas <e.d.programmer@gmail.com> - 2018-08-14 05:47 -0700

csiph-web