scala - Type synonyms in java -


is there anyway ( workaround ) define type synonyms in java, similar following definition in scala?

type row = list[int]; 

though might not same, thinking of following code ( replaced list arraylist, since list interface in java):

public class row extends arraylist<integer>{} 

is there other way achieve type synonym mechanism in java?

unfortunately not. see is there java equivalent or methodology typedef keyword in c++? older duplicate of question, using c++ terminology instead of scala terminology.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -