Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 205 for Apply (0.01 sec)

  1. src/test/java/org/codelibs/fess/util/BooleanFunctionTest.java

            assertTrue(isNotEmpty.apply("test"));
            assertTrue(isNotEmpty.apply("a"));
            assertFalse(isNotEmpty.apply(""));
            assertFalse(isNotEmpty.apply(null));
        }
    
        public void test_apply_integer() {
            BooleanFunction<Integer> isPositive = n -> n != null && n > 0;
    
            assertTrue(isPositive.apply(1));
            assertTrue(isPositive.apply(100));
            assertFalse(isPositive.apply(0));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

            ClosingFuture.from(executor.submit(Callables.returning(closeable1)))
                .transform(
                    new ClosingFunction<TestCloseable, String>() {
                      @Override
                      public String apply(DeferredCloser closer, TestCloseable v) throws Exception {
                        assertThat(v).isSameInstanceAs(closeable1);
                        return "value";
                      }
                    },
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 75.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/CollectCollectors.java

        checkNotNull(keyFunction);
        checkNotNull(valueFunction);
        return Collector.of(
            ImmutableMap.Builder<K, V>::new,
            (builder, input) -> builder.put(keyFunction.apply(input), valueFunction.apply(input)),
            ImmutableMap.Builder::combine,
            ImmutableMap.Builder::buildOrThrow);
      }
    
      static <T extends @Nullable Object, K, V> Collector<T, ?, ImmutableMap<K, V>> toImmutableMap(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 16.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/CollectCollectors.java

        checkNotNull(keyFunction);
        checkNotNull(valueFunction);
        return Collector.of(
            ImmutableMap.Builder<K, V>::new,
            (builder, input) -> builder.put(keyFunction.apply(input), valueFunction.apply(input)),
            ImmutableMap.Builder::combine,
            ImmutableMap.Builder::buildOrThrow);
      }
    
      static <T extends @Nullable Object, K, V> Collector<T, ?, ImmutableMap<K, V>> toImmutableMap(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/SuggestHelper.java

            }
            refresh();
        }
    
        /**
         * Adds a bad word to the suggest index.
         *
         * @param badWord The bad word to add.
         * @param apply   true to apply the changes immediately.
         */
        public void addBadWord(final String badWord, final boolean apply) {
            suggester.indexer().addBadWord(badWord, apply);
            refresh();
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 22.3K bytes
    - Viewed (0)
  6. android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

              @Override
              public Arithmetic apply(Arithmetic arithmetic) {
                return new ForwardingArithmetic(arithmetic);
              }
            });
        tester.testForwarding(
            ParameterTypesDifferent.class,
            new Function<ParameterTypesDifferent, ParameterTypesDifferent>() {
              @Override
              public ParameterTypesDifferent apply(ParameterTypesDifferent delegate) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Response.kt

        }
    
        open fun request(request: Request) =
          apply {
            this.request = request
          }
    
        open fun protocol(protocol: Protocol) =
          apply {
            this.protocol = protocol
          }
    
        open fun code(code: Int) =
          apply {
            this.code = code
          }
    
        open fun message(message: String) =
          apply {
            this.message = message
          }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 14:39:28 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/query/TermQueryCommand.java

        /**
         * Converts a TermQuery to a QueryBuilder with the given boost value.
         *
         * @param context the query context
         * @param termQuery the term query to convert
         * @param boost the boost value to apply
         * @return the converted QueryBuilder
         */
        protected QueryBuilder convertTermQuery(final QueryContext context, final TermQuery termQuery, final float boost) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/base/FunctionsTest.java

        assertEquals(p1.apply(1.0f), p2.apply(1.0f));
        assertEquals(p1.apply(5.0f), p2.apply(5.0f));
      }
    
      public void testForPredicate() {
        Function<Object, Boolean> alwaysTrue = Functions.forPredicate(Predicates.alwaysTrue());
        Function<Object, Boolean> alwaysFalse = Functions.forPredicate(Predicates.alwaysFalse());
    
        assertTrue(alwaysTrue.apply(0));
        assertFalse(alwaysFalse.apply(0));
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  10. mockwebserver-junit5/src/test/java/mockwebserver3/junit5/StartStopTest.kt

      @StartStop val serverA =
        MockWebServer().apply {
          dispatcher = dispatcherA
        }
    
      private val dispatcherB = ClosableDispatcher()
    
      @StartStop val serverB =
        MockWebServer().apply {
          dispatcher = dispatcherB
        }
    
      /** This one won't start because it isn't annotated. */
      private val dispatcherC = ClosableDispatcher()
      val serverC =
        MockWebServer().apply {
          dispatcher = dispatcherC
        }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 11:13:17 UTC 2025
    - 3.3K bytes
    - Viewed (0)
Back to top