• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

are these interface arguments ?

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I'm a bit confused about what feature of Java this is. I am doing a bit of Hadoop and this syntax is something I've not seen before.



Can you tell me what <...> above is, and point me to an online page/tutorial regarding the same?

Thanks.

PS : Kindly note that I respect that this forum is only for Java related queries and not for Hadoop etc. Just thought I'd post it here, since it was a Java question.
 
Rancher
Posts: 43081
77
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's generics. It has nothing to do with interfaces, specifically.
 
Aftab Hassan
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:That's generics. It has nothing to do with interfaces, specifically.


Thanks a lot Ulf Dittmer for the pointer.
Googled and figured out the rest.

Marking the thread as solved.
 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Who wrote a class with four type parameters?
 
Bartender
Posts: 2236
63
IntelliJ IDE Firefox Browser Spring Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:Who wrote a class with four type parameters?


Don't know. But I think it is this class from hadoop: Mapper you can found this class' history here ;).
But if this is the class OP meant then this declaration:will result in a compile error.
You can't implement a class. Interface only.

Aftab, is full name of your Mapper class org.apache.hadoop.mapreduce.Mapper?
 
Aftab Hassan
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Pawel Pawlowicz wrote:Aftab, is full name of your Mapper class org.apache.hadoop.mapreduce.Mapper?


Yes, that's the one.
http://hadoop.apache.org/docs/r2.3.0/api/org/apache/hadoop/mapreduce/Mapper.html
reply
    Bookmark Topic Watch Topic
  • New Topic