Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のコードに出くわしました:
for(Map.Entry<Integer,VmAllocation> entry : allMap.entrySet()) { // ... }
とはMap.Entry<K,V>どういう意味ですか? entryオブジェクトは何ですか?
Map.Entry<K,V>
entry
entrySetメソッドがマップのセットビューを返すことを読みました。for-eachしかし、ループでのこの初期化がわかりません。
entrySet
for-each