Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for stream (0.18 sec)

  1. android/guava/src/com/google/common/collect/Maps.java

       *
       * <p><b>Note:</b> on Java 8+, it is usually better to use streams. For example:
       *
       * <pre>{@code
       * import static com.google.common.collect.ImmutableMap.toImmutableMap;
       * ...
       * ImmutableMap<String, Color> colorForName =
       *     allColors.stream().collect(toImmutableMap(c -> c.toString(), c -> c));
       * }</pre>
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 159.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

       *       {@link #withoutCloser(AsyncFunction)}
       * </ul>
       *
       * <p>Example usage:
       *
       * <pre>{@code
       * // Fall back to a secondary input stream in case of IOException.
       * ClosingFuture<InputStream> inputFuture =
       *     firstInputFuture.catchingAsync(
       *         IOException.class, (closer, x) -> secondaryInputStreamClosingFuture(), executor);
       * }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 98.5K bytes
    - Viewed (0)
Back to top