Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for allocated (0.47 sec)

  1. android/guava/src/com/google/common/collect/Maps.java

          // independent of the initial capacity, except that it won't be lower than the threshold
          // computed from that capacity. Because the internal table is only allocated on the first
          // write, we won't see copying because of the new threshold. So it is always OK to use the
          // calculation here.
          return (int) Math.ceil(expectedSize / 0.75);
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 159.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableSet.java

        return MAX_TABLE_SIZE;
      }
    
      /**
       * Default implementation of the guts of ImmutableSet.Builder, creating an open-addressed hash
       * table and deduplicating elements as they come, so it only allocates O(max(distinct,
       * expectedCapacity)) rather than O(calls to add).
       *
       * <p>This implementation attempts to detect hash flooding, and if it's identified, falls back to
       * JdkBackedSetBuilderImpl.
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

          if (throwable != null) {
            return new Failure(throwable);
          }
        }
        boolean wasCancelled = future.isCancelled();
        // Don't allocate a CancellationException if it's not necessary
        if (!GENERATE_CANCELLATION_CAUSES & wasCancelled) {
          /*
           * requireNonNull is safe because we've initialized CAUSELESS_CANCELLED if
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(Buffer.class, ByteBuffer.allocate(0))
              .put(CharBuffer.class, CharBuffer.allocate(0))
              .put(ByteBuffer.class, ByteBuffer.allocate(0))
              .put(ShortBuffer.class, ShortBuffer.allocate(0))
              .put(IntBuffer.class, IntBuffer.allocate(0))
              .put(LongBuffer.class, LongBuffer.allocate(0))
              .put(FloatBuffer.class, FloatBuffer.allocate(0))
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 21K bytes
    - Viewed (1)
  5. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(Buffer.class, ByteBuffer.allocate(0))
              .put(CharBuffer.class, CharBuffer.allocate(0))
              .put(ByteBuffer.class, ByteBuffer.allocate(0))
              .put(ShortBuffer.class, ShortBuffer.allocate(0))
              .put(IntBuffer.class, IntBuffer.allocate(0))
              .put(LongBuffer.class, LongBuffer.allocate(0))
              .put(FloatBuffer.class, FloatBuffer.allocate(0))
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  6. api/maven-api-spi/src/main/java/org/apache/maven/api/spi/ModelParser.java

        String STRICT = "strict";
    
        /**
         * Locates the pom in the given directory.
         *
         * @param dir the directory to locate the pom for, never {@code null}
         * @return a {@code Source} pointing to the located pom or an empty {@code Optional} if none was found by this parser
         */
        @Nonnull
        Optional<Source> locate(@Nonnull Path dir);
    
        /**
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableMultiset.java

        Builder(int estimatedDistinct) {
          this.contents = ObjectCountHashMap.createWithExpectedSize(estimatedDistinct);
        }
    
        Builder(boolean forSubtype) {
          // for ImmutableSortedMultiset not to allocate data structures not used there
          this.contents = null;
        }
    
        /**
         * Adds {@code element} to the {@code ImmutableMultiset}.
         *
         * @param element the element to add
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/SetsTest.java

        out[0] = b;
        System.arraycopy(array, 0, out, 1, array.length);
        return out;
      }
    
      @GwtIncompatible // java.nio.ByteBuffer
      private static byte[] toByteArray(int h) {
        return ByteBuffer.allocate(4).putInt(h).array();
      }
    
      public void testNewEnumSet_empty() {
        EnumSet<SomeEnum> copy = newEnumSet(Collections.<SomeEnum>emptySet(), SomeEnum.class);
        assertEquals(EnumSet.noneOf(SomeEnum.class), copy);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.9K bytes
    - Viewed (1)
  9. maven-core/src/main/java/org/apache/maven/project/DefaultProjectDependenciesResolver.java

                                artifact instanceof org.apache.maven.internal.impl.resolver.RelocatedArtifact relocated
                                        ? relocated.getMessage()
                                        : null;
                        logger.warn("The artifact " + child.getRelocations().get(0) + " has been relocated to " + artifact
                                + (message != null ? ": " + message : ""));
                    }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/relocation/DistributionManagementArtifactRelocationSource.java

                            null,
                            relocation.getVersion(),
                            relocation.getMessage());
                    LOGGER.debug(
                            "The artifact {} has been relocated to {}: {}",
                            artifactDescriptorResult.getRequest().getArtifact(),
                            result,
                            relocation.getMessage());
                    return result;
                }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 3.2K bytes
    - Viewed (0)
Back to top