private void clear(boolean removeFromCache){
  subscription.cancel();
  valid=false;
synchronized (dirtyLock) {
    dirty=true;
  }
  if (removeFromCache) {
    smsEntries.remove(dnRFCStr);
  }
}

private void clear ( boolean removeFromCache ) { subscription . cancel ( ) ; valid = false ; synchronized ( dirtyLock ) { dirty = true ; } if ( removeFromCache ) { smsEntries . remove ( dnRFCStr ) ; } }
marks the object to be invalid and deregisters for notifications . called by the static method clearcache ( )
