Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 343 for consumer (0.07 sec)

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

      final String delimiter = "-";
      final String key = "key";
      Cache<String, String> cache;
    
      // helper
      private static void doParallelCacheOp(int count, IntConsumer consumer) {
        IntStream.range(0, count).parallel().forEach(consumer);
      }
    
      @Override
      public void setUp() throws Exception {
        super.setUp();
        this.cache =
            CacheBuilder.newBuilder()
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 03:49:18 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/query/QueryFieldConfig.java

            this.highlightedFields = highlightedFields;
        }
    
        /**
         * Processes the highlighted fields using the provided stream consumer.
         *
         * @param stream consumer that processes the stream of highlighted field names
         */
        public void highlightedFields(final Consumer<Stream<String>> stream) {
            stream(highlightedFields).of(stream);
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/base/FessBaseAction.java

         *
         * @param src the source bean object
         * @param dest the destination bean object
         * @param option a consumer function to configure copy options
         */
        protected static void copyBeanToBean(final Object src, final Object dest, final Consumer<CopyOptions> option) {
            BeanUtil.copyBeanToBean(src, dest, option);
        }
    
        /**
         * Copies properties from a map to a bean object.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 15K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/SearchHelper.java

         *
         * @param consumer Consumer function to configure the bulk request builder
         * @return true if all bulk operations were successful, false otherwise
         * @throws InterruptedRuntimeException if the operation is interrupted
         * @throws SearchEngineClientException if the bulk update fails
         */
        public boolean bulkUpdate(final Consumer<BulkRequestBuilder> consumer) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 35.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableMapValues.java

    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import java.io.Serializable;
    import java.util.Map.Entry;
    import java.util.Spliterator;
    import java.util.function.Consumer;
    import org.jspecify.annotations.Nullable;
    
    /**
     * {@code values()} implementation for {@link ImmutableMap}.
     *
     * @author Jesse Wilson
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/DosErrorTest.java

        @Test
        @DisplayName("Mocked consumer receives correct NTSTATUS value")
        void testConsumerInteraction() {
            final int dosErr = 0x00010001;
            final int expectedNt = 0xc0000002;
    
            interface NtStatusConsumer {
                void consume(int ntStatus);
            }
            NtStatusConsumer mock = mock(NtStatusConsumer.class);
            findNtStatus(dosErr).ifPresent(mock::consume);
            verify(mock).consume(expectedNt);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/ResponseBody.kt

      private inline fun <T : Any> ResponseBody.consumeSource(
        consumer: (BufferedSource) -> T,
        sizeMapper: (T) -> Int,
      ): T {
        val contentLength = contentLength()
        if (contentLength > Int.MAX_VALUE) {
          throw IOException("Cannot buffer entire body for content length: $contentLength")
        }
    
        val bytes = source().use(consumer)
        val size = sizeMapper(bytes)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:51:25 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

      }
    
      /**
       * Invokes {@code consumer} for each value contained in this array, in order.
       *
       * @since 33.4.0 (but since 22.0 in the JRE flavor)
       */
      @IgnoreJRERequirement // We rely on users not to call this without library desugaring.
      public void forEach(LongConsumer consumer) {
        checkNotNull(consumer);
        for (int i = start; i < end; i++) {
          consumer.accept(array[i]);
        }
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 22K bytes
    - Viewed (0)
  9. guava/src/com/google/common/primitives/ImmutableIntArray.java

        return indexOf(target) >= 0;
      }
    
      /**
       * Invokes {@code consumer} for each value contained in this array, in order.
       *
       * @since 22.0 (but only since 33.4.0 in the Android flavor)
       */
      public void forEach(IntConsumer consumer) {
        checkNotNull(consumer);
        for (int i = start; i < end; i++) {
          consumer.accept(array[i]);
        }
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableSet.java

          return CollectSpliterators.indexed(size(), SPLITERATOR_CHARACTERISTICS, this::get);
        }
    
        @Override
        public void forEach(Consumer<? super E> consumer) {
          checkNotNull(consumer);
          int n = size();
          for (int i = 0; i < n; i++) {
            consumer.accept(get(i));
          }
        }
    
        @Override
        int copyIntoArray(@Nullable Object[] dst, int offset) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.2K bytes
    - Viewed (0)
Back to top