forked from Speiger/Primitive-Collections
24 lines
258 B
Java
24 lines
258 B
Java
|
package speiger.src.collections.builder.misc;
|
||
|
|
||
|
public class Tuple<K, V>
|
||
|
{
|
||
|
K key;
|
||
|
V value;
|
||
|
|
||
|
public Tuple(K key, V value)
|
||
|
{
|
||
|
this.key = key;
|
||
|
this.value = value;
|
||
|
}
|
||
|
|
||
|
public K getKey()
|
||
|
{
|
||
|
return key;
|
||
|
}
|
||
|
|
||
|
public V getValue()
|
||
|
{
|
||
|
return value;
|
||
|
}
|
||
|
}
|