Helper for switching from Entry to Pair.

Signed-off-by: Timo Kinnunen <timo.kinnunen@gmail.com>
Fix performance of retainAll and removeAll methods when used with Lists.

Signed-off-by: Timo Kinnunen <timo.kinnunen@gmail.com>