Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 298 for copyBuf (0.07 sec)

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

            });
      }
    
      private CacheBuilderFactory cacheFactory() {
        return new CacheBuilderFactory()
            .withKeyStrengths(ImmutableSet.of(Strength.STRONG, Strength.WEAK))
            .withValueStrengths(ImmutableSet.copyOf(Strength.values()))
            .withConcurrencyLevels(ImmutableSet.of(1, 4, 16, 64))
            .withMaximumSizes(ImmutableSet.of(0, 1, 10, 100, 1000))
            .withInitialCapacities(ImmutableSet.of(0, 1, 10, 100, 1000))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/collection/ArrayMap.java

            }
        }
    
        @Override
        public Object clone() {
            final ArrayMap<K, V> copy = new ArrayMap<>();
            copy.threshold = threshold;
            copy.mapTable = Arrays.copyOf(mapTable, size);
            copy.listTable = Arrays.copyOf(listTable, size);
            copy.size = size;
            return copy;
        }
    
        /**
         * エントリのインデックスを返します。
         *
         * @param entry
         *            エントリ
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/Graph.java

     *
     * <p>You can create an immutable copy of an existing {@code Graph} using {@link
     * ImmutableGraph#copyOf(Graph)}:
     *
     * <pre>{@code
     * ImmutableGraph<Integer> immutableGraph = ImmutableGraph.copyOf(graph);
     * }</pre>
     *
     * <p>Instances of {@link ImmutableGraph} do not implement {@link MutableGraph} (obviously!) and are
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 10 15:41:27 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/graph/Graph.java

     *
     * <p>You can create an immutable copy of an existing {@code Graph} using {@link
     * ImmutableGraph#copyOf(Graph)}:
     *
     * <pre>{@code
     * ImmutableGraph<Integer> immutableGraph = ImmutableGraph.copyOf(graph);
     * }</pre>
     *
     * <p>Instances of {@link ImmutableGraph} do not implement {@link MutableGraph} (obviously!) and are
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 10 15:41:27 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ForwardingMultisetTest.java

                      @Override
                      protected Multiset<String> create(String[] elements) {
                        return new StandardImplForwardingMultiset<>(ImmutableMultiset.copyOf(elements));
                      }
                    })
                .named("ForwardingMultiset[ImmutableMultiset] with standard " + "implementations")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java

       * @throws ClassCastException if any value is not an instance of the type specified by its key
       */
      public static <B, S extends B> ImmutableClassToInstanceMap<B> copyOf(
          Map<? extends Class<? extends S>, ? extends S> map) {
        if (map instanceof ImmutableClassToInstanceMap) {
          @SuppressWarnings("rawtypes") // JDT-based J2KT Java frontend does not permit the direct cast
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 10 21:56:03 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertEquals(newMap.entrySet(), map.entrySet());
        assertEquals(newMap.keySet(), map.keySet());
        Set<Object> expectedValues = ImmutableSet.of(one);
        Set<Object> actualValues = ImmutableSet.copyOf(map.values());
        assertEquals(expectedValues, actualValues);
      }
    
      /** Lookups on the map view shouldn't impact the recency queue. */
      public void testAsMapRecency() {
        CacheBuilder<Object, Object> builder =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/LocalLoadingCacheTest.java

        assertEquals(newMap.entrySet(), map.entrySet());
        assertEquals(newMap.keySet(), map.keySet());
        Set<Object> expectedValues = ImmutableSet.of(one);
        Set<Object> actualValues = ImmutableSet.copyOf(map.values());
        assertEquals(expectedValues, actualValues);
      }
    
      /** Lookups on the map view shouldn't impact the recency queue. */
      public void testAsMapRecency() {
        CacheBuilder<Object, Object> builder =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/HashCodeTest.java

        for (int bytes = 0; bytes < totalBytes; bytes++) {
          byte[] bb = new byte[bytes];
          hashCode.writeBytesTo(bb, 0, bb.length);
    
          assertTrue(Arrays.equals(Arrays.copyOf(hashBytes, bytes), bb));
        }
      }
    
      private static class ExpectedHashCode {
        final byte[] bytes;
        final int asInt;
        final Long asLong; // null means that asLong should throw an exception
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

          List<ReferenceEntry<K, V>> writeOrder) {
        if (map.evictsBySize() || map.expiresAfterAccess()) {
          assertSameEntries(readOrder, ImmutableList.copyOf(segment.accessQueue));
        }
        if (map.expiresAfterWrite()) {
          assertSameEntries(writeOrder, ImmutableList.copyOf(segment.writeQueue));
        }
      }
    
      private static <K, V> void assertSameEntries(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 110.6K bytes
    - Viewed (0)
Back to top