Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #29321
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Mike Amling <mamling@chaff.us> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: generics array type check |
| Date | Fri, 25 Jul 2014 13:21:32 -0500 |
| Lines | 16 |
| Message-ID | <c3flgvFbhkdU1@mid.individual.net> (permalink) |
| References | <lqqekm$mtq$1@ariadne.rz.tu-clausthal.de> <c3fhltFanmaU1@mid.individual.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net bdwDzpdZpGkFf4ZlUkF2KAoCO6mTd311zUnCo0+NsRckYVJiR2 |
| Cancel-Lock | sha1:Ju32PgSklpOPITX+uWKroSPcRD4= |
| User-Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
| In-Reply-To | <c3fhltFanmaU1@mid.individual.net> |
| Xref | csiph.com comp.lang.java.programmer:29321 |
Show key headers only | 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
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