Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 261 - 270 of 499 for Supplied (0.06 seconds)

  1. api/maven-api-spi/src/main/java/org/apache/maven/api/spi/ModelTransformer.java

     * Transformations can be applied at three different stages:
     * <ol>
     *   <li>File model - The raw model as read directly from the file</li>
     *   <li>Raw model - The model after inheritance has been applied</li>
     *   <li>Effective model - The fully processed model with all interpolation and inheritance applied</li>
     * </ol>
     * <p>
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Apr 03 13:33:59 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/base/FunctionsTest.java

        }
      }
    
      public void testForSupplier() {
        Supplier<Integer> supplier = new CountingSupplier();
        Function<@Nullable Object, Integer> function = Functions.forSupplier(supplier);
    
        assertEquals(1, (int) function.apply(null));
        assertEquals(2, (int) function.apply("foo"));
    
        new EqualsTester()
            .addEqualityGroup(function, Functions.forSupplier(supplier))
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 16.2K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/base/OptionalTest.java

      }
    
      public void testOr_supplier_absent() {
        assertEquals("fallback", Optional.absent().or(Suppliers.ofInstance("fallback")));
      }
    
      public void testOr_nullSupplier_absent() {
        Supplier<Object> nullSupplier = (Supplier<Object>) Suppliers.<@Nullable Object>ofInstance(null);
        Optional<Object> absentOptional = Optional.absent();
        assertThrows(NullPointerException.class, () -> absentOptional.or(nullSupplier));
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 10.6K bytes
    - Click Count (0)
  4. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/RestTestTransformByParentObject.java

         */
        default String requiredChildKey() {
            return null;
        }
    
        /**
         * @param child a node on which the transformation will be applied.
         * @return true if the transformation should be applied on child node, otherwise false.
         */
        default boolean matches(JsonNode child) {
            return child.has(requiredChildKey());
        }
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 1.3K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/collect/AbstractHashFloodingTest.java

        static Construction<Map<Object, Object>> mapFromKeys(
            Supplier<Map<Object, Object>> mutableSupplier) {
          return keys -> {
            Map<Object, Object> map = mutableSupplier.get();
            for (Object key : keys) {
              map.put(key, new Object());
            }
            return map;
          };
        }
    
        static Construction<Set<Object>> setFromElements(Supplier<Set<Object>> mutableSupplier) {
          return elements -> {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 9K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/MoreCollectors.java

        static final int MAX_EXTRAS = 4;
    
        @Nullable T element;
        List<T> extras;
        final @Nullable Supplier<? extends RuntimeException> exceptionSupplier;
    
        ToOptionalState(@Nullable Supplier<? extends RuntimeException> exceptionSupplier) {
          this.element = null;
          this.extras = emptyList();
          this.exceptionSupplier = exceptionSupplier;
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Feb 18 16:22:33 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  7. benchmarks/src/main/java/org/elasticsearch/common/RoundingBenchmark.java

    import org.openjdk.jmh.annotations.State;
    import org.openjdk.jmh.annotations.Warmup;
    import org.openjdk.jmh.infra.Blackhole;
    
    import java.time.ZoneId;
    import java.util.concurrent.TimeUnit;
    import java.util.function.Supplier;
    
    @Fork(2)
    @Warmup(iterations = 10)
    @Measurement(iterations = 5)
    @BenchmarkMode(Mode.AverageTime)
    @OutputTimeUnit(TimeUnit.NANOSECONDS)
    @State(Scope.Benchmark)
    public class RoundingBenchmark {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 08 16:53:28 GMT 2021
    - 4.1K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/CollectCollectors.java

    import java.util.EnumMap;
    import java.util.EnumSet;
    import java.util.LinkedHashMap;
    import java.util.TreeMap;
    import java.util.function.BinaryOperator;
    import java.util.function.Function;
    import java.util.function.Supplier;
    import java.util.function.ToIntFunction;
    import java.util.stream.Collector;
    import java.util.stream.Stream;
    import org.jspecify.annotations.Nullable;
    
    /** Collectors utilities for {@code common.collect} internals. */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 16.9K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/CollectCollectors.java

    import java.util.EnumMap;
    import java.util.EnumSet;
    import java.util.LinkedHashMap;
    import java.util.TreeMap;
    import java.util.function.BinaryOperator;
    import java.util.function.Function;
    import java.util.function.Supplier;
    import java.util.function.ToIntFunction;
    import java.util.stream.Collector;
    import java.util.stream.Stream;
    import org.jspecify.annotations.Nullable;
    
    /** Collectors utilities for {@code common.collect} internals. */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 16.6K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/query/BoostQueryCommandTest.java

            assertNotNull(result);
            // PhraseQueryCommand returns DefaultQueryBuilder which wraps either Bool or DisMax
            assertTrue(result instanceof DefaultQueryBuilder);
            // The boost is applied internally to the wrapped queries, not necessarily to the DefaultQueryBuilder itself
        }
    
        @Test
        public void test_execute_withBooleanQuery() {
            // Test executing BoostQuery with a BooleanQuery inside
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 17K bytes
    - Click Count (0)
Back to Top