- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 219 for snippet (0.62 sec)
-
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) -
guava/src/com/google/common/collect/Comparators.java
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 10.9K bytes - Viewed (0) -
android/guava/src/com/google/common/base/CharMatcher.java
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 53.9K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/TypeParameter.java
import java.lang.reflect.Type; import java.lang.reflect.TypeVariable; import org.jspecify.annotations.Nullable; /** * Captures a free type variable that can be used in {@link TypeToken#where}. For example: * * {@snippet : * static <T> TypeToken<List<T>> listOf(Class<T> elementType) { * return new TypeToken<List<T>>() {} * .where(new TypeParameter<T>() {}, elementType); * } * } * * @author Ben Yu * @since 12.0
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 2.4K 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 Sep 05 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/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) -
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) -
android/guava/src/com/google/common/base/Equivalence.java
* that tests equivalence using their lengths: * * {@snippet : * equiv.wrap("a").equals(equiv.wrap("b")) // true * equiv.wrap("a").equals(equiv.wrap("hello")) // false * } * * <p>Note in particular that an equivalence wrapper is never equal to the object it wraps. * * {@snippet : * equiv.wrap(obj).equals(obj) // always false * } * * @since 10.0
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 10 01:47:55 UTC 2025 - 14.5K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Futures.java
* fallback}, an exception is thrown, this exception is used as the result of the output {@code * Future}. * * <p>Usage example: * * {@snippet : * ListenableFuture<Integer> fetchCounterFuture = ...; * * // Falling back to a zero counter in case an exception happens when * // processing the RPC to fetch counters.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 64.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Multiset.java
* <p>Returns {@code true} if the given object is also a multiset entry and the two entries * represent the same element and count. That is, two entries {@code a} and {@code b} are equal * if: * * {@snippet : * Objects.equals(a.getElement(), b.getElement()) * && a.getCount() == b.getCount() * } */ @Override // TODO(kevinb): check this wrt TreeMultiset?
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 19.5K bytes - Viewed (0)