Long2ObjectMap.Entry的用法

Long2ObjectMap.Entry<List<String>> data; 
long longData = data.getLongKey();
List<String> objectData = data.getValue();






得到entry:

Long2ObjectMap<List<String>> dataMap = new Long2ObjectOpenHashMap<>();

dataMap.put(...

Set<Long2ObjectMap.Entry<List<String>>> dataSet = dataMap.long2ObjectEntrySet();
for(Long2ObjectMap.Entry<List<String>> data : dataSet) {...      

你可能感兴趣的:(Long2ObjectMap.Entry的用法)