Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

name this this class notation

 
Jano Frank
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the name of this class notation bellow?




Thank you!
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jano Frank wrote:What is the name of this class notation bellow?




Thank you!


That is 'Generics'. You can learn more about them here: http://docs.oracle.com/javase/tutorial/java/generics/index.html
 
Campbell Ritchie
Sheriff
Pie
Posts: 50225
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jano Frank wrote:What is the name of this class notation bellow?




Thank you!
That looks like a label. But it might not compile in its present state.
 
Jano Frank
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, sorry, it was just an example, not a code that would compile, I wanted to show how they instantiate an object from the class and added 'usage' note into the "code".
 
Campbell Ritchie
Sheriff
Pie
Posts: 50225
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not like that. You can add it as part of a documentation comment, or in an if-else.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic