Beispiel #1
0
 /** Set to same values as other item. */
 public final void copyFrom(ItemModelReadOnly other) {
   mUpdateTime = other.getUpdateTime();
   mId = other.getId();
   mText = other.getText();
   mIsCompleted = other.isCompleted();
   mIsLocked = other.isLocked();
   mColor = other.getColor();
 }
Beispiel #2
0
 public final void mergePropertiesFrom(ItemModelReadOnly other) {
   mIsCompleted = mIsCompleted && other.isCompleted();
   mIsLocked = mIsLocked && other.isLocked();
   // TODO: should we clear the color if mIsCompleted?
   mColor = mColor.max(other.getColor());
 }