Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for removeEntryFromChain (0.22 sec)

  1. android/guava-tests/benchmark/com/google/common/cache/ChainBenchmark.java

    import com.google.caliper.Param;
    import com.google.common.cache.LocalCache.Segment;
    import org.jspecify.annotations.NullUnmarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Benchmark for {@code LocalCache.Segment.removeEntryFromChain}.
     *
     * @author Charles Fry
     */
    @SuppressWarnings("CheckReturnValue")
    @NullUnmarked
    public class ChainBenchmark {
    
      @Param({"1", "2", "3", "4", "5", "6"})
      int length;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        // alone
        assertNull(segment.removeEntryFromChain(entryOne, entryOne));
    
        // head
        assertSame(entryOne, segment.removeEntryFromChain(entryTwo, entryTwo));
    
        // middle
        ReferenceEntry<Object, Object> newFirst = segment.removeEntryFromChain(entryThree, entryTwo);
        assertSame(keyThree, newFirst.getKey());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 110.5K bytes
    - Viewed (0)
Back to top