/** * Copyright (c): Uwe Schmidt, FH Wedel * * You may study, modify and distribute this source code * FOR NON-COMMERCIAL PURPOSES ONLY. * This copyright message has to remain unchanged. * * Note that this document is provided 'as is', * WITHOUT WARRANTY of any kind either expressed or implied. */ package ds.util; import ds.util.K; import ds.util.V; public final class KV { public final K fst; public final V snd; private KV(K k, V v) { fst = k; snd = v; } public String toString() { return "(" + fst.toString() + ", " + snd.toString() + ")"; } // smart constructor public static KV mkPair(K k, V v) { return new KV(k, v); } }