public boolean isCleared(){
  sync.lock();
  try {
    return state == ValueState.CLEARED;
  }
  finally {
    sync.unlock();
  }
}

public boolean isCleared ( ) { sync . lock ( ) ; try { return state == ValueState . CLEARED ; } finally { sync . unlock ( ) ; } }
returns true if the value is cached .
