Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for example (1.01 sec)

  1. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

     *         .transform((closer, result) -> result.get("userName"), directExecutor())
     *         .catching(DBException.class, e -> "no user", directExecutor())
     *         .finishToFuture();
     * }</pre>
     *
     * In this example, when the {@code userName} {@link Future} is done, the transaction and the query
     * result cursor will both be closed, even if the operation is cancelled or fails.
     *
     * <h4>Manually closing</h4>
     *
    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)
  2. android/guava/src/com/google/common/collect/Maps.java

       * other words, each input value produces an entry in the map whose key is the result of applying
       * {@code keyFunction} to that value. These entries appear in the same order as the input values.
       * Example usage:
       *
       * <pre>{@code
       * Color red = new Color("red", 255, 0, 0);
       * ...
       * ImmutableSet<Color> allColors = ImmutableSet.of(red, green, blue);
       *
    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)
Back to top