@Nullable public ECKey findOldestKeyAfter(long timeSecs){
  lock.lock();
  try {
    ECKey oldest=null;
    for (    ECKey key : hashToKeys.values()) {
      final long keyTime=key.getCreationTimeSeconds();
      if (keyTime > timeSecs) {
        if (oldest == null || oldest.getCreationTimeSeconds() > keyTime)         oldest=key;
      }
    }
    return oldest;
  }
  finally {
    lock.unlock();
  }
}

@ Nullable public ECKey findOldestKeyAfter ( long timeSecs ) { lock . lock ( ) ; try { ECKey oldest = null ; for ( ECKey key : hashToKeys . values ( ) ) { final long keyTime = key . getCreationTimeSeconds ( ) ; if ( keyTime > timeSecs ) { if ( oldest == null || oldest . getCreationTimeSeconds ( ) > keyTime ) oldest = key ; } } return oldest ; } finally { lock . unlock ( ) ; } }
returns the first eckey created after the given unix time , or null if there is none .
