@FunctionalInterface public interface Fn0<U> extends Supplier<U>, Callable<U>
Modifier and Type | Method and Description |
---|---|
default U |
apply()
The class that takes a consumer as an argument uses this convenience method so that it
doesn't have to worry about checked exceptions either.
|
U |
applyEx()
Implement this one method and you don't have to worry about checked exceptions.
|
default U |
call() |
default U |
get() |
U applyEx() throws Exception
Exception
default U apply()
Copyright © 2017. All rights reserved.