Skip to content
Advertisement

Tag: instance

Java Map for unique object instances?

A library I use contains a certain object type, LackingObject (some type), which lacks an attribute of type Ext (some type). If I was able to change the LackingObject class, I would simply add an attribute with type Ext, but LackingObject cannot be changed, nor extended. What I’d do now in languages like C or C++ is to create a

Advertisement