You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
587 B
34 lines
587 B
package foundation.pEp.pitytest.utils;
|
|
|
|
public class Pair<K, V> {
|
|
private K key = null;
|
|
private V value = null;
|
|
|
|
public K getKey() {
|
|
return key;
|
|
}
|
|
|
|
public void setKey(K key) {
|
|
this.key = key;
|
|
}
|
|
|
|
public V getValue() {
|
|
return value;
|
|
}
|
|
|
|
public void setValue(V value) {
|
|
this.value = value;
|
|
}
|
|
|
|
public Pair(K f, V s) {
|
|
key = f;
|
|
value = s;
|
|
}
|
|
|
|
public String toString() {
|
|
String ret="";
|
|
ret += "'" + key.toString() + "' : '" + value.toString() + "'";
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|