java constructor genertic

Java
public KeyValue(T k , E v) // No compile errors here :)
{
    setKey(k);
    setValue(v);
}
Source

Also in Java: