So, I need function with API like
interface BiFunction<A, B> {
B aToB(A input);
A bToA(B input);
}
aToB
bToA
No, there isn't anything like this in Guava currently. Something like it may be coming (see this issue, as well as this issue for some related discussion).
For names, I don't know what would be best but I'd prefer something like apply
and applyInverse
over aToB
and bToA
.