Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualTheChubu

Posted 14 July 2013 - 02:13 PM

Also, there's this thing in Java that I don't understand, and thats when you have a data type and another type of data in angel brackets. I have no idea what it does. Here is an example:

 

public class ActorAccessor implements TweenAccessor<Actor>

 

What the heck does that do? Other then make a public class called ActorAccessor that implements the interface that doesn't make sense to me. It's the TweenAccessor<Actor> that I don't understand. I can't find any information on it anywhere. I've searched for days.

 

Thats called generic programming. http://en.wikipedia.org/wiki/Generic_programming for general information and the Oracle Java Generics Tutorial for Java specific stuff.

 

Its a widely used feature on many languages (except for the wildcards, you might want to leave those aside for now).


#1TheChubu

Posted 14 July 2013 - 02:12 PM

Also, there's this thing in Java that I don't understand, and thats when you have a data type and another type of data in angel brackets. I have no idea what it does. Here is an example:

 

public class ActorAccessor implements TweenAccessor<Actor>

 

What the heck does that do? Other then make a public class called ActorAccessor that implements the interface that doesn't make sense to me. It's the TweenAccessor<Actor> that I don't understand. I can't find any information on it anywhere. I've searched for days.

 

Thats called generic programming. http://en.wikipedia.org/wiki/Generic_programming for general information and the oracle tutorial http://docs.oracle.com/javase/tutorial/extra/generics/intro.html for Java specific stuff.

 

Its a widely used feature on many languages (except for the wildcards, you might want to leave those aside for now).


PARTNERS