Some common monads implemented in Java