- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 44 for discouraged (0.06 seconds)
-
android/guava/src/com/google/common/util/concurrent/Futures.java
* interrupt). * <li>Any {@link CancellationException} is propagated untouched, as is any other {@link * RuntimeException} (though {@code get} implementations are discouraged from throwing such * exceptions). * </ul> * * <p>The overall principle is to continue to treat every checked exception as a checked
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 64.2K bytes - Click Count (0) -
guava/src/com/google/common/base/Functions.java
return o.toString(); } @Override public String toString() { return "Functions.toStringFunction()"; } } /** * Returns the identity function. * * <p><b>Discouraged:</b> Prefer using a lambda like {@code v -> v}, which is shorter and often * more readable. */ // implementation is "fully variant"; E has become a "pass-through" type @SuppressWarnings("unchecked")
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 06 17:32:30 GMT 2025 - 15.4K bytes - Click Count (0) -
guava/src/com/google/common/base/Suppliers.java
} @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0; } /** * Returns a supplier that always supplies {@code instance}. * * <p><b>Discouraged:</b> Prefer using {@code () -> instance}, but note that lambdas do not have * human-readable {@link #toString()} representations and are not serializable. If you need aCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 31 21:24:28 GMT 2026 - 16.1K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Optional.java
* * @throws IllegalStateException if the instance is absent ({@link #isPresent} returns {@code * false}); depending on this <i>specific</i> exception type (over the more general {@link * RuntimeException}) is discouraged */ public abstract T get(); /** * Returns the contained instance if it is present; {@code defaultValue} otherwise. If no default
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jun 04 13:03:16 GMT 2025 - 15.4K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Suppliers.java
} @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0; } /** * Returns a supplier that always supplies {@code instance}. * * <p><b>Discouraged:</b> Prefer using {@code () -> instance}, but note that lambdas do not have * human-readable {@link #toString()} representations and are not serializable. If you need aCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 31 21:24:28 GMT 2026 - 16.1K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Functions.java
return o.toString(); } @Override public String toString() { return "Functions.toStringFunction()"; } } /** * Returns the identity function. * * <p><b>Discouraged:</b> Prefer using a lambda like {@code v -> v}, which is shorter and often * more readable. */ // implementation is "fully variant"; E has become a "pass-through" type @SuppressWarnings("unchecked")
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 06 17:32:30 GMT 2025 - 15.4K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Verify.java
* recommend using our {@link VerifyException} exception type. Throwing a plain {@link * RuntimeException} is frowned upon. * <li>Use of {@link java.util.Objects#requireNonNull(Object)} is generally discouraged, since * {@link #verifyNotNull(Object)} and {@link Preconditions#checkNotNull(Object)} perform the * same function with more clarity. * </ul> * * <h3>Warning about performance</h3> *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Dec 29 17:36:00 GMT 2025 - 18.5K bytes - Click Count (0) -
guava/src/com/google/common/base/Optional.java
* * @throws IllegalStateException if the instance is absent ({@link #isPresent} returns {@code * false}); depending on this <i>specific</i> exception type (over the more general {@link * RuntimeException}) is discouraged */ public abstract T get(); /** * Returns the contained instance if it is present; {@code defaultValue} otherwise. If no default
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jun 04 13:03:16 GMT 2025 - 15.1K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Throwables.java
} } /** * Propagates {@code throwable} exactly as-is, if and only if it is an instance of {@link * RuntimeException}, {@link Error}, or {@code declaredType}. * * <p><b>Discouraged</b> in favor of calling {@link #throwIfInstanceOf} and {@link * #throwIfUnchecked}. * * @param throwable the Throwable to possibly propagateCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 20.6K bytes - Click Count (0) -
guava/src/com/google/common/base/Verify.java
* recommend using our {@link VerifyException} exception type. Throwing a plain {@link * RuntimeException} is frowned upon. * <li>Use of {@link java.util.Objects#requireNonNull(Object)} is generally discouraged, since * {@link #verifyNotNull(Object)} and {@link Preconditions#checkNotNull(Object)} perform the * same function with more clarity. * </ul> * * <h3>Warning about performance</h3> *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Dec 29 17:36:00 GMT 2025 - 18.5K bytes - Click Count (0)