Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 298 for copyBuf (0.05 sec)

  1. 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)
  2. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

       *     are any duplicate services.
       */
      public ServiceManager(Iterable<? extends Service> services) {
        ImmutableList<Service> copy = ImmutableList.copyOf(services);
        if (copy.isEmpty()) {
          // Having no services causes the manager to behave strangely. Notably, listeners are never
          // fired. To avoid this we substitute a placeholder service.
          logger
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/ServiceManager.java

       *     are any duplicate services.
       */
      public ServiceManager(Iterable<? extends Service> services) {
        ImmutableList<Service> copy = ImmutableList.copyOf(services);
        if (copy.isEmpty()) {
          // Having no services causes the manager to behave strangely. Notably, listeners are never
          // fired. To avoid this we substitute a placeholder service.
          logger
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Collections2.java

        }
    
        @Override
        @CheckForNull
        protected List<E> computeNext() {
          if (nextPermutation == null) {
            return endOfData();
          }
          ImmutableList<E> next = ImmutableList.copyOf(nextPermutation);
          calculateNextPermutation();
          return next;
        }
    
        void calculateNextPermutation() {
          int j = findNextJ();
          if (j == -1) {
            nextPermutation = null;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

      public void addEdge_existingEdgeBetweenSameNodes() {
        assume().that(graphIsMutable()).isTrue();
    
        assertThat(networkAsMutableNetwork.addEdge(N1, N2, E12)).isTrue();
        ImmutableSet<String> edges = ImmutableSet.copyOf(network.edges());
        assertThat(networkAsMutableNetwork.addEdge(N1, N2, E12)).isFalse();
        assertThat(network.edges()).containsExactlyElementsIn(edges);
        assertThat(networkAsMutableNetwork.addEdge(N2, N1, E12)).isFalse();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/graph/ValueGraph.java

     * ImmutableValueGraph}.
     *
     * <p>You can create an immutable copy of an existing {@code ValueGraph} using {@link
     * ImmutableValueGraph#copyOf(ValueGraph)}:
     *
     * <pre>{@code
     * ImmutableValueGraph<Integer, Double> immutableGraph = ImmutableValueGraph.copyOf(graph);
     * }</pre>
     *
     * <p>Instances of {@link ImmutableValueGraph} do not implement {@link MutableValueGraph}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 10 15:41:27 UTC 2024
    - 16K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

          segment.setValueForTesting(entry, value);
        }
        segment.setTableEntryForTesting(0, entry);
        segment.count = originalCount;
        ImmutableMap<Object, Object> originalMap = ImmutableMap.copyOf(map);
        assertEquals(originalCount, originalMap.size());
        assertEquals(originalMap, map);
    
        for (int i = 1; i <= originalCount * 2; i *= 2) {
          if (i > 1) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

          segment.setValueForTesting(entry, value);
        }
        segment.setTableEntryForTesting(0, entry);
        segment.count = originalCount;
        ImmutableMap<Object, Object> originalMap = ImmutableMap.copyOf(map);
        assertEquals(originalCount, originalMap.size());
        assertEquals(originalMap, map);
    
        for (int i = 1; i <= originalCount * 2; i *= 2) {
          if (i > 1) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/graph/ValueGraphTest.java

      MutableValueGraph<Integer, String> graph;
    
      @After
      public void validateGraphState() {
        assertStronglyEquivalent(graph, Graphs.copyOf(graph));
        assertStronglyEquivalent(graph, ImmutableValueGraph.copyOf(graph));
    
        Graph<Integer> asGraph = graph.asGraph();
        AbstractGraphTest.validateGraph(asGraph);
        assertThat(graph.nodes()).isEqualTo(asGraph.nodes());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 06 18:35:19 UTC 2024
    - 20K bytes
    - Viewed (0)
  10. android/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)
Back to top