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