Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 136 for snippet (0.24 sec)

  1. android/guava-tests/test/com/google/common/graph/TraverserTest.java

       *
       * {@snippet :
       * b ---- a ---- d
       * |      |
       * |      |
       * e ---- c ---- f
       * }
       */
      private static final SuccessorsFunction<Character> JAVADOC_GRAPH =
          createUndirectedGraph("ba", "ad", "be", "ac", "ec", "cf");
    
      /**
       * A diamond shaped directed graph (arrows going down):
       *
       * {@snippet :
       *   a
       *  / \
       * b   c
       *  \ /
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 47.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/TraverserTest.java

       *
       * {@snippet :
       * b ---- a ---- d
       * |      |
       * |      |
       * e ---- c ---- f
       * }
       */
      private static final SuccessorsFunction<Character> JAVADOC_GRAPH =
          createUndirectedGraph("ba", "ad", "be", "ac", "ec", "cf");
    
      /**
       * A diamond shaped directed graph (arrows going down):
       *
       * {@snippet :
       *   a
       *  / \
       * b   c
       *  \ /
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 47.5K bytes
    - Viewed (2)
  3. android/guava/src/com/google/common/util/concurrent/FluentFuture.java

    import java.util.concurrent.TimeoutException;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A {@link ListenableFuture} that supports fluent chains of operations. For example:
     *
     * {@snippet :
     * ListenableFuture<Boolean> adminIsLoggedIn =
     *     FluentFuture.from(usersDatabase.getAdminUser())
     *         .transform(User::getId, directExecutor())
     *         .transform(ActivityService::isLoggedIn, threadPool)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

     * Tester to ensure forwarding wrapper works by delegating calls to the corresponding method with
     * the same parameters forwarded and return value forwarded back or exception propagated as is.
     *
     * <p>For example:
     *
     * {@snippet :
     * new ForwardingWrapperTester().testForwarding(Foo.class, new Function<Foo, Foo>() {
     *   public Foo apply(Foo foo) {
     *     return new ForwardingFoo(foo);
     *   }
     * });
     * }
     *
     * @author Ben Yu
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Streams.java

       * respective source streams. For example:
       *
       * {@snippet :
       * Streams.forEachPair(
       *   Stream.of("foo1", "foo2", "foo3"),
       *   Stream.of("bar1", "bar2"),
       *   (arg1, arg2) -> System.out.println(arg1 + ":" + arg2)
       * }
       *
       * <p>will print:
       *
       * {@snippet :
       * foo1:bar1
       * foo2:bar2
       * }
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 37K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableListMultimap.java

       * java.util.stream} Javadoc), that order is preserved, but entries are <a
       * href="ImmutableMultimap.html#iteration">grouped by key</a>.
       *
       * <p>Example:
       *
       * {@snippet :
       * static final Multimap<Character, String> FIRST_LETTER_MULTIMAP =
       *     Stream.of("banana", "apple", "carrot", "asparagus", "cherry")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/CharMatcher.java

       * the beginning and from the end of the string. For example:
       *
       * {@snippet :
       * CharMatcher.anyOf("ab").trimFrom("abacatbab")
       * }
       *
       * ... returns {@code "cat"}.
       *
       * <p>Note that:
       *
       * {@snippet :
       * CharMatcher.inRange('\0', ' ').trimFrom(str)
       * }
       *
       * ... is equivalent to {@link String#trim()}.
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 53.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/Objects.java

       * and not contents.
       *
       * <p>This is useful for implementing {@link Object#hashCode()}. For example, in an object that
       * has three properties, {@code x}, {@code y}, and {@code z}, one could write:
       *
       * {@snippet :
       * public int hashCode() {
       *   return Objects.hashCode(getX(), getY(), getZ());
       * }
       * }
       *
       * <p><b>Warning:</b> When a single object is supplied, the returned hash code does not equal the
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 28 22:51:26 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/FluentIterable.java

     * as a {@code List}:
     *
     * {@snippet :
     * ImmutableList<String> results =
     *     FluentIterable.from(database.getClientList())
     *         .filter(Client::isActiveInLastMonth)
     *         .transform(Object::toString)
     *         .limit(10)
     *         .toList();
     * }
     *
     * The approximate stream equivalent is:
     *
     * {@snippet :
     * List<String> results =
     *     database.getClientList()
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/FluentIterable.java

     * as a {@code List}:
     *
     * {@snippet :
     * ImmutableList<String> results =
     *     FluentIterable.from(database.getClientList())
     *         .filter(Client::isActiveInLastMonth)
     *         .transform(Object::toString)
     *         .limit(10)
     *         .toList();
     * }
     *
     * The approximate stream equivalent is:
     *
     * {@snippet :
     * List<String> results =
     *     database.getClientList()
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 34.8K bytes
    - Viewed (0)
Back to top