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
Post a Comment