Even Java has the Void type, meaning you can write:
Function<Void>
It's a bit shady though as you still have to return a value from the body of the method, and that value has to be null.