Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.java.programmer Subject: Re: Compare generics (that are numbers) Date: Thu, 30 Jul 2020 11:36:26 +0200 Organization: Decebal Computing Lines: 17 Message-ID: <87v9i55opx.fsf@munus.decebal.nl> References: <87k0ym73id.fsf@munus.decebal.nl> <87ft9a6u35.fsf@munus.decebal.nl> <87bljy6qu3.fsf@munus.decebal.nl> <5f226e02$0$14413$e4fe514c@newszilla.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="f8d0a939acc3a275654d8d40652c9997"; logging-data="23504"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+/AlYXYnfEdWFvlp0haF4iB6fZ5mZ93wE=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cancel-Lock: sha1:rffiCdGITYVAaU8dPmXWAxgYJYY= sha1:k1VpRbRe9AvjnBTKWk0TIOISrvU= Xref: csiph.com comp.lang.java.programmer:39599 Silvio writes: > You could try Scala. It has type specialization that allows you to > prevent boxing overhead when using generics with primitive type > parameters. Is a possibility, but I think it better to do in Java. There is the possibility that someone that only uses Java will not be convinced by Scala code. I think I can manage in Java, but otherwise I can bring your tip into practice. -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof