I learned recently its easy to import a package in Scala while aliasing some of the package members. In my case, I had a few different imported packages each with a class/object named Hour. The following could be used to alias the Hour member while importing the whole package (“wildcard” import):
As one would expect, the type A_Hour within the scope of the import refers to com.somewhere.packageA.Hour, B_Hour to com.somewhere.packageB.Hour, etc.