Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 423 for collectors (0.13 seconds)

  1. guava/src/com/google/common/collect/MoreCollectors.java

    /**
     * Collectors not present in {@code java.util.stream.Collectors} that are not otherwise associated
     * with a {@code com.google.common} type.
     *
     * @author Louis Wasserman
     * @since 21.0
     */
    @GwtCompatible
    public final class MoreCollectors {
    
      /*
       * TODO(lowasser): figure out if we can convert this to a concurrent AtomicReference-based
       * collector without breaking j2cl?
       */
    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)
  2. android/guava/src/com/google/common/collect/MoreCollectors.java

       * collector without breaking j2cl?
       */
      private static final Collector<Object, ?, Optional<Object>> TO_OPTIONAL =
          Collector.of(
              () -> new ToOptionalState<>(null),
              ToOptionalState::add,
              ToOptionalState::combine,
              ToOptionalState::getOptional,
              Collector.Characteristics.UNORDERED);
    
      /**
       * A collector that converts a stream of zero or one elements to an {@code Optional}.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Feb 18 16:22:33 GMT 2026
    - 6.3K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/ImmutableSortedMap.java

       * the collection operation is performed. (This differs from the {@code Collector} returned by
       * {@link Collectors#toMap(Function, Function)}, which throws an {@code IllegalStateException}.)
       *
       * @since NEXT
       */
      public static <T extends @Nullable Object, K extends Comparable<? super K>, V>
          Collector<T, ?, ImmutableSortedMap<K, V>> toImmutableSortedMap(
              Function<? super T, ? extends K> keyFunction,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 08 18:10:02 GMT 2026
    - 52.1K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

       * {@link Collectors#toMap(Function, Function)}, which throws an {@code IllegalStateException}.)
       *
       * @since NEXT
       */
      @IgnoreJRERequirement // Users will use this only if they're already using streams.
      public static <T extends @Nullable Object, K extends Comparable<? super K>, V>
          Collector<T, ?, ImmutableSortedMap<K, V>> toImmutableSortedMap(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 08 18:10:02 GMT 2026
    - 54.7K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/ImmutableMap.java

       * from the {@code Collector} returned by {@link Collectors#toMap(Function, Function)}, which
       * throws an {@code IllegalStateException}.)
       *
       * @since 33.2.0 (available since 21.0 in guava-jre)
       */
      @IgnoreJRERequirement // Users will use this only if they're already using streams.
      public static <T extends @Nullable Object, K, V>
          Collector<T, ?, ImmutableMap<K, V>> toImmutableMap(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 02 19:58:40 GMT 2026
    - 41.2K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/mylasta/direction/FessProp.java

                        value = stream((String[]) value).get(stream -> stream.collect(Collectors.joining("\n")));
                    } else if (value instanceof List) {
                        @SuppressWarnings("unchecked")
                        final List<String> list = (List<String>) value;
                        value = list.stream().collect(Collectors.joining("\n"));
                    }
                } else if (dateFieldSet.contains(key)) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 92.3K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/ImmutableMap.java

       * IllegalArgumentException} is thrown when the collection operation is performed. (This differs
       * from the {@code Collector} returned by {@link Collectors#toMap(Function, Function)}, which
       * throws an {@code IllegalStateException}.)
       *
       * @since 21.0
       */
      public static <T extends @Nullable Object, K, V>
          Collector<T, ?, ImmutableMap<K, V>> toImmutableMap(
              Function<? super T, ? extends K> keyFunction,
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 44.7K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/dataconfig/AdminDataconfigAction.java

                                .distinct()
                                .collect(Collectors.joining("\n")));
                        form.virtualHosts = stream(entity.getVirtualHosts())
                                .get(stream -> stream.filter(StringUtil::isNotBlank).map(String::trim).collect(Collectors.joining("\n")));
                        form.name = null;
                    });
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 11:54:13 GMT 2026
    - 21K bytes
    - Click Count (0)
  9. .teamcity/scripts/CheckBadMerge.java

            String trimmed = stdout.trim();
            if (trimmed.isEmpty()) {
                return Collections.emptyList();
            }
            return Arrays.stream(trimmed.split("\\s+"))
                .map(String::trim)
                .filter(s -> !s.isEmpty())
                .collect(Collectors.toList());
        }
    
        private record ExecResult(
            String stdout,
            String stderr,
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 30 16:25:09 GMT 2026
    - 9K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/app/web/admin/backup/AdminBackupAction.java

                                .collect(Collectors.groupingBy(Pair::getFirst, Collectors.mapping(Pair::getSecond, Collectors.toList())));
                        appendJson("search-field", searchFieldMap, buf).append(',');
                        final Map<String, List<String>> requestHeaderMap = entity.getRequestHeaderList()
                                .stream()
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Nov 24 02:07:40 GMT 2025
    - 32.1K bytes
    - Click Count (0)
Back to Top