public boolean isDirty() {
    return (myAdded != null && myAdded.size() > 0)
           || (myInvalidated != null && !myInvalidated.isEmpty())
           || needsCompacting();
  }
public boolean isDirty()