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