I am following a free google appengine programming course at udacity (Developing Scalable Apps In java, a pretty good introductory course to appengine by the way).
In one of the lessons, I get to this sample piece of java code:
...
// Iterate over keyStringsToAttend and return a Collection of the
// Conference entities that the user has registered to attend
List< Key<Conference> > keysToAttend = new ArrayList<>();
for ( String keyString : keyStringsToAttend ) {
keysToAttend.add( Key.<Conference>create( keyString ) );
}
...
My question is about the last statement in the fragment:
Key.<Conference>create( keyString )
The syntax is correct, it compiles and runs perfectly, but I just don't get the meaning of the .<Conference>
part before the create(...)
method name...
Can you explain this syntax?