Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for Segments (0.09 sec)

  1. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

        // no entry
        assertEquals(0, segment.count);
        assertNull(segment.remove(key, hash));
        assertEquals(0, segment.count);
    
        // same key
        table.set(index, entry);
        segment.count++;
        assertEquals(1, segment.count);
        assertSame(oldValue, segment.get(key, hash));
        assertSame(oldValue, segment.remove(key, hash));
        assertEquals(0, segment.count);
        assertNull(segment.get(key, hash));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 110.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/LocalCacheTest.java

        // no entry
        assertEquals(0, segment.count);
        assertNull(segment.remove(key, hash));
        assertEquals(0, segment.count);
    
        // same key
        table.set(index, entry);
        segment.count++;
        assertEquals(1, segment.count);
        assertSame(oldValue, segment.get(key, hash));
        assertSame(oldValue, segment.remove(key, hash));
        assertEquals(0, segment.count);
        assertNull(segment.get(key, hash));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 112.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        LocalCache<?, ?> map = CacheTesting.toLocalCache(cache);
    
        assertThat(map.segments).hasLength(4);
        assertEquals(2, map.segments[0].table.length());
        assertEquals(2, map.segments[1].table.length());
        assertEquals(2, map.segments[2].table.length());
        assertEquals(2, map.segments[3].table.length());
      }
    
      @GwtIncompatible // CacheTesting
      public void testInitialCapacity_smallest() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/MapMakerInternalMap.java

         */
        long sum = 0L;
        Segment<K, V, E, S>[] segments = this.segments;
        for (int i = 0; i < segments.length; ++i) {
          if (segments[i].count != 0) {
            return false;
          }
          sum += segments[i].modCount;
        }
    
        if (sum != 0L) { // recheck unless no modifications
          for (int i = 0; i < segments.length; ++i) {
            if (segments[i].count != 0) {
              return false;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

         */
        long sum = 0L;
        Segment<K, V, E, S>[] segments = this.segments;
        for (int i = 0; i < segments.length; ++i) {
          if (segments[i].count != 0) {
            return false;
          }
          sum += segments[i].modCount;
        }
    
        if (sum != 0L) { // recheck unless no modifications
          for (int i = 0; i < segments.length; ++i) {
            if (segments[i].count != 0) {
              return false;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/cache/LocalCache.java

          for (Segment<K, V> segment : segments) {
            if (segment.count != 0) {
              return false;
            }
            sum -= segment.modCount;
          }
          return sum == 0L;
        }
        return true;
      }
    
      long longSize() {
        Segment<K, V>[] segments = this.segments;
        long sum = 0;
        for (Segment<K, V> segment : segments) {
          sum += segment.count;
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
  7. istioctl/pkg/install/k8sversion/version.go

    	ver, err := goversion.NewVersion(versionInfo.String())
    	if err != nil {
    		return 0, fmt.Errorf("could not parse %v", err)
    	}
    	// Segments provide slice of int eg: v1.19.1 => [1, 19, 1]
    	num := ver.Segments()[1]
    	return num, nil
    }
    
    // IsK8VersionSupported checks minimum supported Kubernetes version for Istio.
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 30 21:50:50 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  8. src/bufio/bufio_test.go

    	r := NewReader(&StringReader{data: segments})
    	for {
    		r, _, err := r.ReadRune()
    		if err != nil {
    			if err != io.EOF {
    				return
    			}
    			break
    		}
    		got += string(r)
    	}
    	if got != want {
    		t.Errorf("segments=%v got=%s want=%s", segments, got, want)
    	}
    }
    
    var segmentList = [][]string{
    	{},
    	{""},
    	{"日", "本語"},
    	{"\u65e5", "\u672c", "\u8a9e"},
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/net/UrlEscapers.java

      /**
       * Returns an {@link Escaper} instance that escapes strings so they can be safely included in <a
       * href="https://url.spec.whatwg.org/#syntax-url-path-segment">URL path segments</a>. The returned
       * escaper escapes all non-ASCII characters, even though <a
       * href="https://url.spec.whatwg.org/#url-code-points">many of these are accepted in modern
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 19 16:02:36 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/net/UrlEscapers.java

      /**
       * Returns an {@link Escaper} instance that escapes strings so they can be safely included in <a
       * href="https://url.spec.whatwg.org/#syntax-url-path-segment">URL path segments</a>. The returned
       * escaper escapes all non-ASCII characters, even though <a
       * href="https://url.spec.whatwg.org/#url-code-points">many of these are accepted in modern
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 19 16:02:36 UTC 2024
    - 7.1K bytes
    - Viewed (0)
Back to top