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


Groups > comp.lang.java.programmer > #19200 > unrolled thread

public <E> String FUNCTIONNAME( ?,?)

Started bywaiter.james1991@gmail.com
First post2012-10-09 01:48 -0700
Last post2012-10-10 00:43 +0200
Articles 12 — 7 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  public  <E>  String     FUNCTIONNAME(  ?,?) waiter.james1991@gmail.com - 2012-10-09 01:48 -0700
    Re: public  <E>  String     FUNCTIONNAME(  ?,?) Roedy Green <see_website@mindprod.com.invalid> - 2012-10-09 02:03 -0700
    Re: public  <E>  String     FUNCTIONNAME(  ?,?) Jeff Higgins <jeff@invalid.invalid> - 2012-10-09 10:23 -0400
      Re: public  <E>  String     FUNCTIONNAME(  ?,?) Lew <lewbloch@gmail.com> - 2012-10-09 10:15 -0700
        Re: public  <E>  String     FUNCTIONNAME(  ?,?) Jeff Higgins <jeff@invalid.invalid> - 2012-10-09 17:30 -0400
          Re: public  <E>  String     FUNCTIONNAME(  ?,?) Lew <lewbloch@gmail.com> - 2012-10-09 16:08 -0700
            [OT] The addendum and Meta [was]Re: public <E> String FUNCTIONNAME( ?,?) Jeff Higgins <jeff@invalid.invalid> - 2012-10-10 05:51 -0400
              An addendum Jeff Higgins <jeff@invalid.invalid> - 2012-10-10 06:04 -0400
    Re: public  <E>  String     FUNCTIONNAME(  ?,?) Eric Sosman <esosman@comcast-dot-net.invalid> - 2012-10-09 17:40 -0400
    Re: public  <E>  String     FUNCTIONNAME(  ?,?) Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2012-10-09 23:47 +0200
      Re: public  <E>  String     FUNCTIONNAME(  ?,?) Arne Vajhøj <arne@vajhoej.dk> - 2012-10-09 18:09 -0400
        Re: public  <E>  String     FUNCTIONNAME(  ?,?) Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2012-10-10 00:43 +0200

#19200 — public <E> String FUNCTIONNAME( ?,?)

Fromwaiter.james1991@gmail.com
Date2012-10-09 01:48 -0700
Subjectpublic <E> String FUNCTIONNAME( ?,?)
Message-ID<6d2e79a9-7f37-4558-89b1-d451298b9890@googlegroups.com>
public  <E>  String     FUNCTIONNAME(  ?,?) {

        ......
}


it's return type is <E>String  ???
what it's  exactly mean?

[toc] | [next] | [standalone]


#19201

FromRoedy Green <see_website@mindprod.com.invalid>
Date2012-10-09 02:03 -0700
Message-ID<50q778dsbp4jmnkc46apam6s1e0nvmn3s9@4ax.com>
In reply to#19200
On Tue, 9 Oct 2012 01:48:48 -0700 (PDT), waiter.james1991@gmail.com
wrote, quoted or indirectly quoted someone who said :

>public  <E>  String     FUNCTIONNAME(  ?,?) {
>
>        ......
>}
>
>
>it's return type is <E>String  ???

Method names are lower case

The return type is String.  To understand what the <E> means see
http://mindprod.com/jgloss/generics.html
-- 
Roedy Green Canadian Mind Products http://mindprod.com
The iPhone 5 is a low end Rolex. 

[toc] | [prev] | [next] | [standalone]


#19204

FromJeff Higgins <jeff@invalid.invalid>
Date2012-10-09 10:23 -0400
Message-ID<k51bm5$etp$1@dont-email.me>
In reply to#19200
On 10/09/2012 04:48 AM, waiter.james1991@gmail.com wrote:
> public<E>   String     FUNCTIONNAME(  ?,?) {
>
>          ......
> }
>
>
> it's return type is<E>String  ???
No. The return type would be String.
The <E>, a "type parameter", simply introduces a name
for a generic type into the scope of the method.
You have apparently chosen to ignore it in your paraphrased example.
> what it's  exactly mean?
See:
<http://docs.oracle.com/javase/tutorial/extra/generics/methods.html>
and/or a generic web search using the terms java+generic+method.

[toc] | [prev] | [next] | [standalone]


#19205

FromLew <lewbloch@gmail.com>
Date2012-10-09 10:15 -0700
Message-ID<fea256a3-09a6-49ff-918d-67fe2482a207@googlegroups.com>
In reply to#19204
Jeff Higgins wrote:
> waiter.james1991@ wrote:
>> public<E>   String     FUNCTIONNAME(  ?,?) {
>>
>>          ......
>> }
>>
>
>> it's return type is<E>String  ???

No.

Got enough question marks there?

See
http://docs.oracle.com/javase/specs/jls/se7/html/jls-8.html#jls-8.4

"MethodHeader:
"  MethodModifiers[opt] TypeParameters[opt] Result MethodDeclarator Throws[opt] "

http://docs.oracle.com/javase/specs/jls/se7/html/jls-8.html#jls-8.4.4

"A method is /generic/ if it declares one or more type variables (§4.4).
"These type variables are known as the type parameters of the method. The form of the type parameter section of a generic method is identical to the type parameter section of a generic class (§8.1.2)."

etc.

> No. The return type would be String.
> The <E>, a "type parameter", simply introduces a name
> for a generic type into the scope of the method.
> You have apparently chosen to ignore it in your paraphrased example.
> 
>> what it's  [sic] exactly mean?
> 
> See:
> <http://docs.oracle.com/javase/tutorial/extra/generics/methods.html>
> and/or a generic web search using the terms java+generic+method.

-- 
Lew

[toc] | [prev] | [next] | [standalone]


#19207

FromJeff Higgins <jeff@invalid.invalid>
Date2012-10-09 17:30 -0400
Message-ID<k524mn$o1s$1@dont-email.me>
In reply to#19205
On 10/09/2012 01:15 PM, Lew wrote:
> Jeff Higgins wrote:
>> waiter.james1991@ wrote:
>>> public<E>    String     FUNCTIONNAME(  ?,?) {
>>>
>>>           ......
>>> }
>>>
>>
>>> it's return type is<E>String  ???
>
> No.
>
> Got enough question marks there?
>
> See
> http://docs.oracle.com/javase/specs/jls/se7/html/jls-8.html#jls-8.4
>
> "MethodHeader:
> "  MethodModifiers[opt] TypeParameters[opt] Result MethodDeclarator Throws[opt]"
>
> http://docs.oracle.com/javase/specs/jls/se7/html/jls-8.html#jls-8.4.4
>
> "A method is /generic/ if it declares one or more type variables (§4.4).
> "These type variables are known as the type parameters of the method. The form of the type parameter section of a generic method is identical to the type parameter section of a generic class (§8.1.2)."
>
> etc.

It's curious that you reply to my reply to the original post
and then leave my comments uncommented upon. It seems somewhat
akin to top posting. I admit to having committed the same
on occasion, but you do it with some regularity and I thought
to comment on this occasion. Perhaps your newsreader makes it
difficult to negotiate the hierarchy of the thread and you
simply reply to the last post read.

>
>> No. The return type would be String.
>> The<E>, a "type parameter", simply introduces a name
>> for a generic type into the scope of the method.
>> You have apparently chosen to ignore it in your paraphrased example.
>>
>>> what it's  [sic] exactly mean?
>>
>> See:
>> <http://docs.oracle.com/javase/tutorial/extra/generics/methods.html>
>> and/or a generic web search using the terms java+generic+method.
>

[toc] | [prev] | [next] | [standalone]


#19214

FromLew <lewbloch@gmail.com>
Date2012-10-09 16:08 -0700
Message-ID<fe531b78-3e30-4221-a07b-96d3d7f9a16f@googlegroups.com>
In reply to#19207
Jeff Higgins wrote:
> It's curious that you reply to my reply to the original post
> and then leave my comments uncommented upon. It seems somewhat
> akin to top posting. I admit to having committed the same
> on occasion, but you do it with some regularity and I thought
> to comment on this occasion. Perhaps your newsreader makes it
> difficult to negotiate the hierarchy of the thread and you
> simply reply to the last post read.

I insert my comments inline where I have further remarks, but I keep 
yours where they were, as with other cited material, to establish context
and to endorse the content, as useful at least and, in your case, as correct.

If I put my remarks under yours, then it looks as though I'm reacting to that 
remark, when my point is usually marginal to an earlier line by a different 
poster.

If I remove your remarks, then I lose the context that I deem important to cite.

I often find myself responding to threads where the main question has already 
been answered better than I could have, but I see dangling threads. For example, 
this is hypothetical, say I see an idiom for a 'final' instance method in a concurrent 
context, and I see that 'final' might server better. I'll comment on that, and leave
your remarks in place in order not to lose the real answer.

And I'm using a web interface to Usenet which is a pain in the ass. It breaks lines
arbitrarily and doubles the lines, so a quoted line is 

> this is a broken 
> 
> line through the 
> 
> f- friendly interface.

I have to demangle a lot to post. It's a testament to how important I think my 
comments are that I am willing to go through all this effort to share them. 

You're welcome.

(That was a joke, BTW.)

For various reasons unrelated to product quality it's inconvenient to use 
Thunderbird lately. I find the discussions here very enlightening so I soldier on.

-- 
Lew

[toc] | [prev] | [next] | [standalone]


#19220 — [OT] The addendum and Meta [was]Re: public <E> String FUNCTIONNAME( ?,?)

FromJeff Higgins <jeff@invalid.invalid>
Date2012-10-10 05:51 -0400
Subject[OT] The addendum and Meta [was]Re: public <E> String FUNCTIONNAME( ?,?)
Message-ID<k53g4d$fks$1@dont-email.me>
In reply to#19214
On 10/09/2012 07:08 PM, Lew wrote:
> Jeff Higgins wrote:
>> It's curious that you reply to my reply to the original post
>> and then leave my comments uncommented upon. It seems somewhat
>> akin to top posting. I admit to having committed the same
>> on occasion, but you do it with some regularity and I thought
>> to comment on this occasion. Perhaps your newsreader makes it
>> difficult to negotiate the hierarchy of the thread and you
>> simply reply to the last post read.
>
> I insert my comments inline where I have further remarks, but I keep
> yours where they were, as with other cited material, to establish context
> and to endorse the content, as useful at least and, in your case, as correct.
>
> If I put my remarks under yours, then it looks as though I'm reacting to that
> remark, when my point is usually marginal to an earlier line by a different
> poster.
>
> If I remove your remarks, then I lose the context that I deem important to cite.
>
> I often find myself responding to threads where the main question has already
> been answered better than I could have, but I see dangling threads. For example,
> this is hypothetical, say I see an idiom for a 'final' instance method in a concurrent
> context, and I see that 'final' might server better. I'll comment on that, and leave
> your remarks in place in order not to lose the real answer.

Ah, OK an unannounced inline addendum. Thanks for the explanation.

While replying to the original post I briefly considered tracking down
and including links to the relevant parts of the JLS but thought that
would muddy my attempt at a simple lay explanation.
You gasp and sputter, I heard you.
Anyway you whip out the BNF in all its glorious Truth and Beauty, and it 
is Majestic. I thank you. No joke. I'm sure the newb is feelin' it too.

>
> And I'm using a web interface to Usenet which is a pain in the ass. It breaks lines
> arbitrarily and doubles the lines, so a quoted line is
>
>> this is a broken
>>
>> line through the
>>
>> f- friendly interface.
>
> I have to demangle a lot to post. It's a testament to how important I think my
> comments are that I am willing to go through all this effort to share them.
>
> You're welcome.
>
> (That was a joke, BTW.)
>
> For various reasons unrelated to product quality it's inconvenient to use
> Thunderbird lately. I find the discussions here very enlightening so I soldier on.
>

Yep, it's sad. I recall Andrew Thompson experiencing a similar
predicament (forced use of a WITUN) shortly before he pissed off
of c.l.j.p to focus his attention on the greater volume an perhaps
more stimulating Q/A type discussion at the (then) Sun Java Forums.

[toc] | [prev] | [next] | [standalone]


#19221 — An addendum

FromJeff Higgins <jeff@invalid.invalid>
Date2012-10-10 06:04 -0400
SubjectAn addendum
Message-ID<k53gs5$jf0$1@dont-email.me>
In reply to#19220
On 10/10/2012 05:51 AM, Jeff Higgins wrote:
> On 10/09/2012 07:08 PM, Lew wrote:
>> Jeff Higgins wrote:
>>> It's curious that you reply to my reply to the original post
>>> and then leave my comments uncommented upon. It seems somewhat
>>> akin to top posting. I admit to having committed the same
>>> on occasion, but you do it with some regularity and I thought
>>> to comment on this occasion. Perhaps your newsreader makes it
>>> difficult to negotiate the hierarchy of the thread and you
>>> simply reply to the last post read.
>>
>> I insert my comments inline where I have further remarks, but I keep
>> yours where they were, as with other cited material, to establish context
>> and to endorse the content, as useful at least and, in your case, as
>> correct.
>>
>> If I put my remarks under yours, then it looks as though I'm reacting
>> to that
>> remark, when my point is usually marginal to an earlier line by a
>> different
>> poster.
>>
>> If I remove your remarks, then I lose the context that I deem
>> important to cite.
>>
>> I often find myself responding to threads where the main question has
>> already
>> been answered better than I could have, but I see dangling threads.
>> For example,
>> this is hypothetical, say I see an idiom for a 'final' instance method
>> in a concurrent
>> context, and I see that 'final' might server better. I'll comment on
>> that, and leave
>> your remarks in place in order not to lose the real answer.
>
> Ah, OK an unannounced inline addendum. Thanks for the explanation.
>
> While replying to the original post I briefly considered tracking down
> and including links to the relevant parts of the JLS but thought that
> would muddy my attempt at a simple lay explanation.
> You gasp and sputter, I heard you.
> Anyway you whip out the BNF in all its glorious Truth and Beauty, and it
> is Majestic. I thank you. No joke. I'm sure the newb is feelin' it too.
>
If that sounds angry, it really is not.
>>
>> And I'm using a web interface to Usenet which is a pain in the ass. It
>> breaks lines
>> arbitrarily and doubles the lines, so a quoted line is
>>
>>> this is a broken
>>>
>>> line through the
>>>
>>> f- friendly interface.
>>
>> I have to demangle a lot to post. It's a testament to how important I
>> think my
>> comments are that I am willing to go through all this effort to share
>> them.
>>
>> You're welcome.
>>
>> (That was a joke, BTW.)
>>
>> For various reasons unrelated to product quality it's inconvenient to use
>> Thunderbird lately. I find the discussions here very enlightening so I
>> soldier on.
>>
>
> Yep, it's sad. I recall Andrew Thompson experiencing a similar
> predicament (forced use of a WITUN) shortly before he pissed off
> of c.l.j.p to focus his attention on the greater volume an perhaps
> more stimulating Q/A type discussion at the (then) Sun Java Forums.
>
Yes, I do miss his rambunctious nature and
wealth of sharable knowledge. Other parts no.

[toc] | [prev] | [next] | [standalone]


#19208

FromEric Sosman <esosman@comcast-dot-net.invalid>
Date2012-10-09 17:40 -0400
Message-ID<k525l4$tvc$1@dont-email.me>
In reply to#19200
On 10/9/2012 4:48 AM, waiter.james1991@gmail.com wrote:
> public  <E>  String     FUNCTIONNAME(  ?,?) {
>
>          ......
> }
>
>
> it's return type is <E>String  ???
> what it's  exactly mean?

     Perhaps I'm missing something (it happens), but I don't
think it means anything at all.  That is, I cannot think of
a way to fill in the elided bits to arrive at compilable code.

     Could you show the actual code in which you found this,
with enough surrounding context to give slow plodders like
me a running start?

-- 
Eric Sosman
esosman@comcast-dot-net.invalid

[toc] | [prev] | [next] | [standalone]


#19210

FromDaniele Futtorovic <da.futt.news@laposte-dot-net.invalid>
Date2012-10-09 23:47 +0200
Message-ID<k5264d$vio$2@dont-email.me>
In reply to#19200
On 09/10/2012 10:48, waiter.james1991@gmail.com allegedly wrote:
> public  <E>  String     FUNCTIONNAME(  ?,?) {
> 
>         ......
> }
> 
> 
> it's return type is <E>String  ???
> what it's  exactly mean?

RTFM.

-- 
DF.

[toc] | [prev] | [next] | [standalone]


#19211

FromArne Vajhøj <arne@vajhoej.dk>
Date2012-10-09 18:09 -0400
Message-ID<5074a07f$0$286$14726298@news.sunsite.dk>
In reply to#19210
On 10/9/2012 5:47 PM, Daniele Futtorovic wrote:
> On 09/10/2012 10:48, waiter.james1991@gmail.com allegedly wrote:
>> public  <E>  String     FUNCTIONNAME(  ?,?) {
>>
>>          ......
>> }
>>
>>
>> it's return type is <E>String  ???
>> what it's  exactly mean?
>
> RTFM.

Since the manuals index will not have a snippet like the
quoted code, then it will be reading from first page to
last page for those not knowing that the keyword is "generics".

Arne

[toc] | [prev] | [next] | [standalone]


#19212

FromDaniele Futtorovic <da.futt.news@laposte-dot-net.invalid>
Date2012-10-10 00:43 +0200
Message-ID<k529ep$i4g$1@dont-email.me>
In reply to#19211
On 10/10/2012 00:09, Arne Vajhøj allegedly wrote:
> On 10/9/2012 5:47 PM, Daniele Futtorovic wrote:
>> On 09/10/2012 10:48, waiter.james1991@gmail.com allegedly wrote:
>>> public  <E>  String     FUNCTIONNAME(  ?,?) {
>>>
>>>          ......
>>> }
>>>
>>>
>>> it's return type is <E>String  ???
>>> what it's  exactly mean?
>>
>> RTFM.
> 
> Since the manuals index will not have a snippet like the
> quoted code, then it will be reading from first page to
> last page for those not knowing that the keyword is "generics".

It's a fair cop.

<http://docs.oracle.com/javase/tutorial/java/generics/methods.html>

-- 
DF.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web