Creating static, nested associative arrays in Java -
i have data model represent in java class, defined nested associative array. want able create instance of object , either reference key-value pairs name, or iterate on them. if going in python or javascript, nested associative array might this:
sandwiches = { "ham sandwich": { "bread": "white", "meat": "ham", "condiment": "mustard" }, "blt": { "bread": "rye", "meat": "bacon", "condiment": "mayo" }, ... }
is there quick , easy way create object in java? assume nested hashmap
looking for, there not seem simple one- or two-lined method creating object using native java libraries. if there not exist way standard java libraries, 3rd-party tools ideal this?
Comments
Post a Comment