Java wrappers for min/max

Silly Java can't use type-classed code.