Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 77 for computed (0.19 sec)

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

        listener = queuingRemovalListener();
      }
    
      public void testGet() {
        Object computed = new Object();
        LoadingCache<Object, Object> cache =
            CacheBuilder.newBuilder()
                .maximumSize(0)
                .removalListener(listener)
                .build(constantLoader(computed));
    
        Object key = new Object();
        assertSame(computed, cache.getUnchecked(key));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/NullCacheTest.java

        listener = queuingRemovalListener();
      }
    
      public void testGet() {
        Object computed = new Object();
        LoadingCache<Object, Object> cache =
            CacheBuilder.newBuilder()
                .maximumSize(0)
                .removalListener(listener)
                .build(constantLoader(computed));
    
        Object key = new Object();
        assertSame(computed, cache.getUnchecked(key));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/AbstractIterator.java

      private State state = State.NOT_READY;
    
      /** Constructor for use by subclasses. */
      protected AbstractIterator() {}
    
      private enum State {
        /** We have computed the next element and haven't returned it yet. */
        READY,
    
        /** We haven't yet computed or have already returned the element. */
        NOT_READY,
    
        /** We have reached the end of the data and are finished. */
        DONE,
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Mar 18 02:04:10 GMT 2022
    - 6.4K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/internal/impl/PathModularizationCache.java

    import java.util.Set;
    import java.util.function.Predicate;
    
    import org.apache.maven.api.JavaPathType;
    import org.apache.maven.api.PathType;
    
    /**
     * Cache of {@link PathModularization} instances computed for given {@link Path} elements.
     * The cache is used for avoiding the need to reopen the same files many times when the
     * same dependency is used for different scope. For example a path used for compilation
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Fri Mar 01 17:18:13 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/Lifecycle.java

        String id();
    
        /**
         * Collection of phases for this lifecycle
         */
        Collection<Phase> phases();
    
        /**
         * Pre-ordered list of phases.
         * If not provided, a default order will be computed.
         */
        default Optional<List<String>> orderedPhases() {
            return Optional.empty();
        }
    
        /**
         * A phase in the lifecycle.
         */
        interface Phase {
            String name();
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/AbstractIterator.java

      private State state = State.NOT_READY;
    
      /** Constructor for use by subclasses. */
      protected AbstractIterator() {}
    
      private enum State {
        /** We have computed the next element and haven't returned it yet. */
        READY,
    
        /** We haven't yet computed or have already returned the element. */
        NOT_READY,
    
        /** We have reached the end of the data and are finished. */
        DONE,
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Mar 18 02:04:10 GMT 2022
    - 6.4K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/ListHashCodeTester.java

        for (E element : getOrderedElements()) {
          expectedHashCode = 31 * expectedHashCode + ((element == null) ? 0 : element.hashCode());
        }
        assertEquals(
            "A List's hashCode() should be computed from those of its elements.",
            expectedHashCode,
            getList().hashCode());
      }
    
      /**
       * Returns the {@link Method} instance for {@link #testHashCode()} so that list tests on
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/ListHashCodeTester.java

        for (E element : getOrderedElements()) {
          expectedHashCode = 31 * expectedHashCode + ((element == null) ? 0 : element.hashCode());
        }
        assertEquals(
            "A List's hashCode() should be computed from those of its elements.",
            expectedHashCode,
            getList().hashCode());
      }
    
      /**
       * Returns the {@link Method} instance for {@link #testHashCode()} so that list tests on
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/PathModularizationCache.java

    import java.util.Set;
    import java.util.function.Predicate;
    
    import org.apache.maven.api.JavaPathType;
    import org.apache.maven.api.PathType;
    
    /**
     * Cache of {@link PathModularization} instances computed for given {@link Path} elements.
     * The cache is used for avoiding the need to reopen the same files many times when the
     * same dependency is used for different scope. For example a path used for compilation
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/CacheLoader.java

    import com.google.common.util.concurrent.ListenableFuture;
    import com.google.common.util.concurrent.ListenableFutureTask;
    import java.io.Serializable;
    import java.util.Map;
    import java.util.concurrent.Executor;
    
    /**
     * Computes or retrieves values, based on a key, for use in populating a {@link LoadingCache}.
     *
     * <p>Most implementations will only need to implement {@link #load}. Other methods may be
     * overridden as desired.
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Dec 19 20:20:14 GMT 2022
    - 9.5K bytes
    - Viewed (0)
Back to top