Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for newBuilder (0.19 sec)

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

        final ExecutionException ee = new ExecutionException(cause);
    
        LoadingCache<Object, Object> cacheUnchecked =
            CacheBuilder.newBuilder().build(exceptionLoader(uee));
        LoadingCache<Object, Object> cacheChecked =
            CacheBuilder.newBuilder().build(exceptionLoader(ee));
    
        try {
          cacheUnchecked.get(new Object());
          fail();
        } catch (ExecutionException e) {
          fail();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        final ExecutionException ee = new ExecutionException(cause);
    
        LoadingCache<Object, Object> cacheUnchecked =
            CacheBuilder.newBuilder().build(exceptionLoader(uee));
        LoadingCache<Object, Object> cacheChecked =
            CacheBuilder.newBuilder().build(exceptionLoader(ee));
    
        try {
          cacheUnchecked.get(new Object());
          fail();
        } catch (ExecutionException e) {
          fail();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java

                Set<Artifact> reportArtifacts = new HashSet<>();
                for (ReportPlugin report :
                        project.getModel().getDelegate().getReporting().getPlugins()) {
                    Plugin pp = Plugin.newBuilder()
                            .groupId(report.getGroupId())
                            .artifactId(report.getArtifactId())
                            .version(report.getVersion())
                            .build();
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 56.9K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelBuilder.java

                        }
                        return s;
                    });
                }
    
                @Override
                public Profile apply(Profile p) {
                    return Profile.newBuilder(p)
                            .activation(transformActivation(p.getActivation()))
                            .build();
                }
    
                @Override
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri May 03 08:48:38 GMT 2024
    - 61.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/cache/CacheBuilder.java

     * cache instances created by {@code CacheBuilder} will not perform any type of eviction.
     *
     * <p>Usage example:
     *
     * <pre>{@code
     * LoadingCache<Key, Graph> graphs = CacheBuilder.newBuilder()
     *     .maximumSize(10000)
     *     .expireAfterWrite(Duration.ofMinutes(10))
     *     .removalListener(MY_LISTENER)
     *     .build(
     *         new CacheLoader<Key, Graph>() {
    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)
Back to top