Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for Load (0.27 sec)

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

        final AtomicInteger count = new AtomicInteger();
        final Exception e = new IllegalStateException("exception to trigger failure on first load()");
        CacheLoader<Integer, String> failOnceFunction =
            new CacheLoader<Integer, String>() {
    
              @Override
              public String load(Integer key) throws Exception {
                if (count.getAndIncrement() == 0) {
                  throw e;
                }
    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 AtomicInteger count = new AtomicInteger();
        final Exception e = new IllegalStateException("exception to trigger failure on first load()");
        CacheLoader<Integer, String> failOnceFunction =
            new CacheLoader<Integer, String>() {
    
              @Override
              public String load(Integer key) throws Exception {
                if (count.getAndIncrement() == 0) {
                  throw e;
                }
    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-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelBuilder.java

            String superModelVersion = inputModel.getModelVersion() != null ? inputModel.getModelVersion() : "4.0.0";
            if (!VALID_MODEL_VERSIONS.contains(superModelVersion)) {
                // Maven 3.x is always using 4.0.0 version to load the supermodel, so
                // do the same when loading a dependency.  The model validator will also
                // check that field later.
                superModelVersion = "4.0.0";
            }
    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)
  4. guava/src/com/google/common/cache/CacheBuilder.java

     *     .maximumSize(10000)
     *     .expireAfterWrite(Duration.ofMinutes(10))
     *     .removalListener(MY_LISTENER)
     *     .build(
     *         new CacheLoader<Key, Graph>() {
     *           public Graph load(Key key) throws AnyException {
     *             return createExpensiveGraph(key);
     *           }
     *         });
     * }</pre>
     *
     * <p>Or equivalently,
     *
     * <pre>{@code
    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)
  5. guava-tests/test/com/google/common/collect/MapsTest.java

        assertEquals(2, result.size());
    
        // Now test values loaded from a stream.
        String props = "test\n second = 2\n Third item :   a short  phrase   ";
    
        testProp.load(new StringReader(props));
    
        result = Maps.fromProperties(testProp);
        assertEquals(4, result.size());
        assertEquals("true", result.get("first"));
        assertEquals("", result.get("test"));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MapsTest.java

        assertEquals(2, result.size());
    
        // Now test values loaded from a stream.
        String props = "test\n second = 2\n Third item :   a short  phrase   ";
    
        testProp.load(new StringReader(props));
    
        result = Maps.fromProperties(testProp);
        assertEquals(4, result.size());
        assertEquals("true", result.get("first"));
        assertEquals("", result.get("test"));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  7. maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java

        // that represent a verification of a specification item needs to be a couple lines at most.
        // The expressions help a lot, but we need a clean to pick up a directory of POMs, automatically load
        // them into a resolver, create the expression to extract the data to validate the Model, and the URI
        // to validate the properties. We also need a way to navigate from the Tex specification documents to
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 93.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/api/json/SearchApiManager.java

        public SearchApiManager() {
            setPathPrefix("/api/v1");
        }
    
        @PostConstruct
        public void register() {
            if (logger.isInfoEnabled()) {
                logger.info("Load {}", this.getClass().getSimpleName());
            }
            ComponentUtil.getWebApiManagerFactory().add(this);
        }
    
        @Override
        protected FormatType detectFormatType(final HttpServletRequest request) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 02:17:23 GMT 2024
    - 50.3K bytes
    - Viewed (0)
Back to top