- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 52 for snippet (0.04 sec)
-
android/guava/src/com/google/common/graph/PredecessorsFunction.java
* * Given an algorithm, for example: * * {@snippet : * public <N> someGraphAlgorithm(N startNode, PredecessorsFunction<N> predecessorsFunction); * } * * you will invoke it depending on the graph representation you're using. * * <p>If you have an instance of one of the primary {@code common.graph} types ({@link Graph}, * {@link ValueGraph}, and {@link Network}): * * {@snippet : * someGraphAlgorithm(startNode, graph); * }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 4K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/SuccessorsFunction.java
* * Given an algorithm, for example: * * {@snippet : * public <N> someGraphAlgorithm(N startNode, SuccessorsFunction<N> successorsFunction); * } * * you will invoke it depending on the graph representation you're using. * * <p>If you have an instance of one of the primary {@code common.graph} types ({@link Graph}, * {@link ValueGraph}, and {@link Network}): * * {@snippet : * someGraphAlgorithm(startNode, graph); * }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 4.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/IteratorTester.java
* * <p>For example, to test {@link java.util.Collections#unmodifiableList(java.util.List) * Collections.unmodifiableList}'s iterator: * * {@snippet : * List<String> expectedElements = * Arrays.asList("a", "b", "c", "d", "e"); * List<String> actualElements = * Collections.unmodifiableList( * Arrays.asList("a", "b", "c", "d", "e"));Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 20:54:16 UTC 2025 - 4.3K bytes - Viewed (0) -
guava/src/com/google/common/graph/PredecessorsFunction.java
* * Given an algorithm, for example: * * {@snippet : * public <N> someGraphAlgorithm(N startNode, PredecessorsFunction<N> predecessorsFunction); * } * * you will invoke it depending on the graph representation you're using. * * <p>If you have an instance of one of the primary {@code common.graph} types ({@link Graph}, * {@link ValueGraph}, and {@link Network}): * * {@snippet : * someGraphAlgorithm(startNode, graph); * }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 4K bytes - Viewed (0) -
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 YuRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 9.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/AbstractSequentialIterator.java
* whose next element can always be derived from the previous element. Null elements are not * supported, nor is the {@link #remove()} method. * * <p>Example: * * {@snippet : * Iterator<Integer> powersOfTwo = * new AbstractSequentialIterator<Integer>(1) { * protected Integer computeNext(Integer previous) { * return (previous == 1 << 30) ? null : previous * 2; * }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 2.3K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/Funnel.java
* single-element enum to maintain serialization guarantees. See Effective Java (2nd Edition), Item * 3: "Enforce the singleton property with a private constructor or an enum type". For example: * * {@snippet : * public enum PersonFunnel implements Funnel<Person> { * INSTANCE; * public void funnel(Person person, PrimitiveSink into) { * into.putUnencodedChars(person.getFirstName())
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 2.1K bytes - Viewed (0) -
guava/src/com/google/common/cache/CacheLoader.java
* * <p>Most implementations will only need to implement {@link #load}. Other methods may be * overridden as desired. * * <p>Usage example: * * {@snippet : * CacheLoader<Key, Graph> loader = new CacheLoader<Key, Graph>() { * public Graph load(Key key) throws AnyException { * return createExpensiveGraph(key); * } * };Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 9.5K bytes - Viewed (0) -
android/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 theRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Jul 28 22:51:26 UTC 2025 - 3.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractSequentialIterator.java
* whose next element can always be derived from the previous element. Null elements are not * supported, nor is the {@link #remove()} method. * * <p>Example: * * {@snippet : * Iterator<Integer> powersOfTwo = * new AbstractSequentialIterator<Integer>(1) { * protected Integer computeNext(Integer previous) { * return (previous == 1 << 30) ? null : previous * 2; * }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 2.3K bytes - Viewed (0)