Path: csiph.com!4.us.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.mixmin.net!newsreader4.netcologne.de!news.netcologne.de!.POSTED.2001-4dd3-ae38-0-ada1-1290-a847-1871.ipv6dyn.netcologne.de!not-for-mail From: Patrick Roemer Newsgroups: comp.lang.java.programmer Subject: Re: Store Suppliers in a map Date: Wed, 10 Apr 2019 16:35:56 +0200 Organization: news.netcologne.de Distribution: world Message-ID: References: <88a3b286-0d96-425e-ac82-c02e3ebcc84a@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Date: Wed, 10 Apr 2019 14:35:56 -0000 (UTC) Injection-Info: newsreader4.netcologne.de; posting-host="2001-4dd3-ae38-0-ada1-1290-a847-1871.ipv6dyn.netcologne.de:2001:4dd3:ae38:0:ada1:1290:a847:1871"; logging-data="1458"; mail-complaints-to="abuse@netcologne.de" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.24) Gecko/20100411 Thunderbird/2.0.0.24 Mnenhy/0.7.6.0 In-Reply-To: Content-Language: en-US Xref: csiph.com comp.lang.java.programmer:38893 Responding to myself: > You need a uniform key type. Value type, of course. > Or you could bury the whole remaining computation, starting from the > Supplier, in a custom data type and use this as a key type. Ditto. Best regards, Patrick