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: Compare generics (that are numbers) Date: Wed, 29 Jul 2020 17:19:22 +0200 Organization: Decebal Computing Lines: 10 Message-ID: <87k0ym73id.fsf@munus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="79ff8c6ea305f6a25ce9fe89b8d0bb76"; logging-data="21479"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19sHJPys1YNJuTQ7+v20OELgWNyIuVjvcI=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cancel-Lock: sha1:bOgqZ8PwDHUYp/44ur+SguF78zo= sha1:InuV53W4uaL0lvjVKSIsqmlMF0I= Xref: csiph.com comp.lang.java.programmer:39589 I have a class that starts with: abstract class CalcValuesGeneric { E will be Integer, int, Float or float. (For now, but always a Number.) What is the best way to determine which of the two is lower? -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof