package org.opendaylight.yangtools.triemap; import java.util.Map; /*** * Helper class simulating a tuple of 2 elements in Scala * * @author Roman Levenstein * * @param * @param */ class Pair implements Map.Entry { final K k; final V v; Pair (K k, V v) { this.k = k; this.v = v; } @Override public K getKey () { // TODO Auto-generated method stub return k; } @Override public V getValue () { // TODO Auto-generated method stub return v; } @Override public V setValue (V value) { throw new RuntimeException ("Operation not supported"); } }