<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-weight: normal; orphans: auto; widows: auto">
<br>
<span style="font-size: 11pt;">Hello.</span></div>
<div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-weight: normal; orphans: auto; widows: auto">
<br>
</div>
<div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-weight: normal; orphans: auto; widows: auto">
<span style="font-size: 11pt;">The java.util.function.Supplier is supported from Java 8.</span></div>
<div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-weight: normal; orphans: auto; widows: auto">
<br>
</div>
<div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-weight: normal; orphans: auto; widows: auto">
<span style="font-size: 11pt;">Some new methods like:</span></div>
<div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-weight: normal; orphans: auto; widows: auto">
<br>
</div>
<br>
<span style="font-size: 11pt;">public void debug(String format, Supplier<Object> argument);</span><span><br>
</span>
<div><br>
</div>
<span style="font-size: 11pt;">public void debug(String format, Supplier<Object>... arguments);</span><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-size: 11pt;">may add to org.slf4j.Logger.</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-size: 11pt;">Lazy computing improves performance.</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-size: 11pt;"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-size: 11pt;">Old:</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-size: 11pt;">
<pre style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 13.6px; margin-bottom: 0px; margin-top: 0px; background-color: rgb(246, 248, 250); border-radius: 3px; line-height: 1.45; overflow: auto; padding: 16px; color: rgb(36, 41, 46)">log<span style="box-sizing: border-box; color: rgb(215, 58, 73)">.</span>info(<span style="box-sizing: border-box; color: rgb(3, 47, 98)"><span style="box-sizing: border-box">"</span>INFO a {} b {}<span style="box-sizing: border-box">"</span></span>,<span style="box-sizing: border-box">JsonUtil</span><span style="box-sizing: border-box; color: rgb(215, 58, 73)">.</span>ObjectToJson(instance),<span style="box-sizing: border-box; color: rgb(3, 47, 98)"><span style="box-sizing: border-box">"</span>success<span style="box-sizing: border-box">"</span></span>);</pre>
<br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-size: 11pt;">New:</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-size: 11pt;"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-size: 11pt;">
<pre style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 13.6px; margin-bottom: 0px; margin-top: 0px; background-color: rgb(246, 248, 250); border-radius: 3px; line-height: 1.45; overflow: auto; padding: 16px; color: rgb(36, 41, 46)">log<span style="margin: 0px; color: rgb(215, 58, 73); box-sizing: border-box">.</span>info(<span style="margin: 0px; color: rgb(3, 47, 98); box-sizing: border-box"><span style="margin: 0px; box-sizing: border-box">"</span>INFO a {} b {}<span style="margin: 0px; box-sizing: border-box">"</span></span>,()->JsonUtil<span style="font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 13.6px; color: rgb(215, 58, 73); box-sizing: border-box;">.</span><span style="font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; color: rgb(36, 41, 46); font-size: 13.6px;">ObjectToJson(instance)</span>,<span style="margin: 0px; color: rgb(3, 47, 98); box-sizing: border-box"><span style="margin: 0px; box-sizing: border-box">"</span>success<span style="margin: 0px; box-sizing: border-box">"</span></span>);</pre>
<br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-size: 11pt;">The new one with better performance because the ObjectToJson called <span style="font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important">only</span> on the info level or high.</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-size: 11pt;"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-size: 11pt;">I found slf4j support jdk version older the 8. Maybe we can create a new module for JDK 8. <span style="font-family: Helvetica; caret-color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); display: inline !important">Supplier
 on slf4j is</span> really an exciting feature.</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-size: 11pt;"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="font-size: 11pt;">Thanks!</span></div>
</body>
</html>