i was wondering what is the preferred method for writing Collection accessors in jme3?


getMap() => returns entire Map<a, b>


getMapKeys() => returns Map<a, b>.keySet

getMapV(key) etc…

also would it be ok for me to add these accessors for objects such as MaterialDef, TechniqueDef etc or are they to be considered low level and hence private?

I don't think it's a good idea to add accessors to those classes you mentioned, they are not part of the public API first of all, and second, the maps might get replaced for lists later on, for performance reasons.