org.xbib.net.Pair Maven / Gradle / Ivy
package org.xbib.net;
/**
* A pair of parameters.
* @param the key type parameter
* @param the value type parameter
*/
public class Pair {
private final K first;
private final V second;
Pair(K first, V second) {
this.first = first;
this.second = second;
}
public K getFirst() {
return first;
}
public V getSecond() {
return second;
}
@Override
public String toString() {
return first + ":" + second;
}
}