Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Stringify {
- private final Supplier<String> supplier;
- private Stringify(Supplier<String> supplier){
- this.supplier = supplier;
- }
- public static Stringify it(Supplier<String> supplier) {
- return new Stringify(supplier);
- }
- @Override
- public String toString(){
- return this.supplier.get();
- }
- }
- log.info("{}", Stringify.it(() -> ""));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement