Anyway (a workaround) to define type synonyms in Java, similar to the following definition in Scala?
type Row = List[Int];
Although this may not be exactly the same, I was thinking of the following code (I replaced List with ArrayList, since List is an interface in Java):
public class Row extends ArrayList<Integer>{}
Is there any other way to achieve type synonyms in java?
source share