public bool processUpdateDate(int date) { lock(this) { if(this.date <= date) { this.date = date; return true; } else { return false; } } }