hmm, that’s a tough one: I cannot really write that class in Java for real, and writing a Java copy runs the risk of bitrotting, as would documenting the method signatures translated to Java.

Wait a second, I have an idea!