package org.opendaylight.yangtools.triemap;
import java.util.Iterator;
+import java.util.AbstractMap.SimpleImmutableEntry;
import java.util.Map;
import java.util.Map.Entry;
public Entry<K, V> next () {
if (n instanceof Node) {
Node<K, V> nn = (Node<K, V>) n;
- Pair<K, V> res = new Pair<K, V> (nn.k, nn.v);
+ Entry<K, V> res = new SimpleImmutableEntry<K, V> (nn.k, nn.v);
n = n.next;
return res;
} else {