in the original Context-Class there is a HashMap<String, Object> making it possible to not only store values of class RefenceType but also for example simple Integer values. This is supported by a generic get-method adding new entries to the HashMap on demand.
However, I can not seem to get how write a generic get-method in the Scala implementation.
I am using a HashMap[String, Object] imported from java.util.HashMap. Just like in the Java implementation I have my get-method
Code: Alles auswählen
def get[T] (key: String, value: Supplier[T]): T = ...
What am I missing here?