Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 142 for Peal (0.18 sec)

  1. guava/src/com/google/common/base/Preconditions.java

       *
       * if (guardExpression) {
       *    throw new BadException(badMsg(...));
       * }
       *
       * The alternative natural refactorings into void or Exception-returning methods are much slower.
       * This is a big deal - we're talking factors of 2-8 in microbenchmarks, not just 10-20%. (This is
       * a hotspot optimizer bug, which should be fixed, but that's a separate, big project).
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Feb 14 15:46:55 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java

        suite.addTestSuite(ImmutableTypeToInstanceMapTest.class);
    
        suite.addTest(
            MapTestSuiteBuilder.using(
                    new TestTypeToInstanceMapGenerator() {
                      // Other tests will verify what real, warning-free usage looks like
                      // but here we have to do some serious fudging
                      @Override
                      @SuppressWarnings({"unchecked", "rawtypes"})
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/cache/CacheBuilder.java

     *             return createExpensiveGraph(key);
     *           }
     *         });
     * }</pre>
     *
     * <p>Or equivalently,
     *
     * <pre>{@code
     * // In real life this would come from a command-line flag or config file
     * String spec = "maximumSize=10000,expireAfterWrite=10m";
     *
     * LoadingCache<Key, Graph> graphs = CacheBuilder.from(spec)
     *     .removalListener(MY_LISTENER)
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 51.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/hash/FarmHashFingerprint64Test.java

        // ISO 8859-1 only has 0-255 (ubyte) representation so throws away UTF-8 characters
        // greater than 127 (ie with their top bit set).
        // Don't attempt to do this in real code.
        assertEquals(
            fingerprint(stringA.getBytes(ISO_8859_1)), fingerprint(stringB.getBytes(ISO_8859_1)));
      }
    
      public void testPutNonChars() {
        Hasher hasher = HASH_FN.newHasher();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 15:56:47 GMT 2017
    - 6.2K bytes
    - Viewed (0)
  5. maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecyclePluginAnalyzer.java

            this.lookup = requireNonNull(lookup);
            this.defaultLifeCycles = requireNonNull(defaultLifeCycles);
        }
    
        // These methods deal with construction intact Plugin object that look like they come from a standard
        // <plugin/> block in a Maven POM. We have to do some wiggling to pull the sources of information
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Jan 10 12:55:54 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  6. maven-compat/src/main/java/org/apache/maven/repository/UserLocalArtifactRepository.java

        public Artifact find(Artifact artifact) {
            File artifactFile = new File(localRepository.getBasedir(), pathOf(artifact));
    
            // We need to set the file here or the resolver will fail with an NPE, not fully equipped to deal
            // with multiple local repository implementations yet.
            artifact.setFile(artifactFile);
    
            return artifact;
        }
    
        @Override
        public String getId() {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/MutableClassToInstanceMapTest.java

        suite.addTestSuite(MutableClassToInstanceMapTest.class);
    
        suite.addTest(
            MapTestSuiteBuilder.using(
                    new TestClassToInstanceMapGenerator() {
                      // Other tests will verify what real, warning-free usage looks like
                      // but here we have to do some serious fudging
                      @Override
                      @SuppressWarnings({"unchecked", "rawtypes"})
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/MutableClassToInstanceMapTest.java

        suite.addTestSuite(MutableClassToInstanceMapTest.class);
    
        suite.addTest(
            MapTestSuiteBuilder.using(
                    new TestClassToInstanceMapGenerator() {
                      // Other tests will verify what real, warning-free usage looks like
                      // but here we have to do some serious fudging
                      @Override
                      @SuppressWarnings({"unchecked", "rawtypes"})
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/ListeningExecutorService.java

     * MoreExecutors#listeningDecorator(ExecutorService)}.
     *
     * @author Chris Povirk
     * @since 10.0
     */
    @DoNotMock(
        "Use TestingExecutors.sameThreadScheduledExecutor, or wrap a real Executor from "
            + "java.util.concurrent.Executors with MoreExecutors.listeningDecorator")
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public interface ListeningExecutorService extends ExecutorService {
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sun Jun 20 10:45:35 GMT 2021
    - 4.2K bytes
    - Viewed (0)
  10. guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java

              // if this is a concern we could add special cases for some known charsets (like utf8)
              // or we could avoid inputstreamreader and use the decoder api directly
              // TODO(lukes): in a real implementation we would need to handle overflow conditions
              int maxChars = (int) (size.get().intValue() * cs.newDecoder().maxCharsPerByte());
              char[] buffer = new char[maxChars];
              int bufIndex = 0;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.2K bytes
    - Viewed (0)
Back to top