add Enumeration on Scala and Java