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


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

Re: generics array type check

From Mike Amling <mamling@chaff.us>
Newsgroups comp.lang.java.programmer
Subject Re: generics array type check
Date 2014-07-25 13:21 -0500
Message-ID <c3flgvFbhkdU1@mid.individual.net> (permalink)
References <lqqekm$mtq$1@ariadne.rz.tu-clausthal.de> <c3fhltFanmaU1@mid.individual.net>

Show all headers | View raw


On 7/25/14 12:15 PM, Mike Amling wrote:
>
> static long[] getSize(Object subject) {
>    if (subject==null) {
>    ...

Or, using the generic signature,

static <T> long[] getSize(T puppet) {
   Object subject=puppet;
   if (subject==null) {
   ...

--Mike Amling

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


Thread

generics array type check Philipp Kraus <philipp.kraus@flashpixx.de> - 2014-07-24 10:03 +0200
  Re: generics array type check Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-07-24 09:13 -0400
  Re: generics array type check markspace <markspace@nospam.nospam> - 2014-07-24 08:24 -0700
    Re: generics array type check Arne Vajhøj <arne@vajhoej.dk> - 2014-07-25 21:14 -0400
  Re: generics array type check Mike Amling <mamling@chaff.us> - 2014-07-25 12:15 -0500
    Re: generics array type check Mike Amling <mamling@chaff.us> - 2014-07-25 13:21 -0500
  Re: generics array type check Arne Vajhøj <arne@vajhoej.dk> - 2014-07-25 21:12 -0400

csiph-web