Simple question# Java - 爪哇娇娃
g*y
1 楼
What's the most efficient data structure in Java to express:
key -> {key1:value1, key2:value2, ... keyN:valueN}
HashMap is one way. Since I need no operation other than
getter/setter, class is kind of heavy. Anything lighter?
key -> {key1:value1, key2:value2, ... keyN:valueN}
HashMap
getter/setter, class is kind of heavy. Anything lighter?