SwitchEV / RISE-V2G

The only fully-featured reference implementation of the Vehicle-2-Grid communication interface ISO 15118
MIT License
217 stars 93 forks source link

Use EntrySet when iterating over a Map and using key and value #50

Closed MatthiasOs closed 4 years ago

MatthiasOs commented 4 years ago

When both the key and the value are needed, it's more efficient to iterate the entrySet, which will give access to both the key and value, instead.