예제 #1
0
 public Note updateFrom(Note another) {
   another
       .getFieldStorage()
       .forEach(
           (k, v) -> {
             if (!v.isFinal()) {
               getFieldStorage().get(k).setJsonValue(v.getJsonValue());
             }
           });
   return this;
 }
예제 #2
0
 public Boolean isLongerThan(Note rival) {
   return getLength().compareTo(rival.getLength()) > 0;
 }