@VisibleForTesting
  ReferenceEntry<K, V> newEntry(K key, int hash, @NullableDecl ReferenceEntry<K, V> next) {
    Segment<K, V> segment = segmentFor(hash);
    segment.lock();
    try {
      return segment.newEntry(key, hash, next);
    } finally {
      segment.unlock();
    }
  }
@VisibleForTesting
  ReferenceEntry<K, V> newEntry(K key, int hash, @NullableDecl ReferenceEntry<K, V> next) {
    Segment<K, V> segment = segmentFor(hash);
    segment.lock();
    try {
      return segment.newEntry(key, hash, next);
    } finally {
      segment.unlock();
    }
  }
@ VisibleForTesting ReferenceEntry < K , V > newEntry ( K key , int hash , @ NullableDecl ReferenceEntry < K , V > next ) { Segment < K , V > segment = segmentFor ( hash ) ; segment . lock ( ) ; try { return segment . newEntry ( key , hash , next ) ; } finally { segment . unlock ( ) ; } }
This method is a convenience for testing. Code should call {@link Segment#newEntry} directly.
This method is a convenience for testing . Code should call {