Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for discouraged (0.08 sec)

  1. guava/src/com/google/common/base/Predicates.java

     *
     * @author Kevin Bourrillion
     * @since 2.0
     */
    @GwtCompatible
    public final class Predicates {
    
      /**
       * Returns a predicate that always evaluates to {@code true}.
       *
       * <p><b>Discouraged:</b> Prefer using {@code x -> true}, but note that lambdas do not have
       * human-readable {@link #toString()} representations and are not serializable.
       */
      public static <T extends @Nullable Object> Predicate<T> alwaysTrue() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/ThreadFactoryBuilder.java

      /**
       * Sets the priority for new threads created with this ThreadFactory.
       *
       * <p><b>Warning:</b> relying on the thread scheduler is <a
       * href="http://errorprone.info/bugpattern/ThreadPriorityCheck">discouraged</a>.
       *
       * <p><b>Java 21+ users:</b> use {@link Thread.Builder.OfPlatform#priority(int)} instead.
       *
       * @param priority the priority for new Threads created with this ThreadFactory
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:35:26 UTC 2025
    - 9K bytes
    - Viewed (0)
  3. 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
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 64.3K bytes
    - Viewed (0)
  4. 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")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 17:32:30 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  5. 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 a
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  6. 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 a
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  7. 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 propagate
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/FluentIterable.java

    import java.util.Iterator;
    import java.util.List;
    import java.util.SortedSet;
    import java.util.stream.Stream;
    import org.jspecify.annotations.NonNull;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A discouraged (but not deprecated) precursor to Java's superior {@link Stream} library.
     *
     * <p>The following types of methods are provided:
     *
     * <ul>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 34.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableMapValues.java

       * the backport does. For now, we're keeping the class declaration in *both* flavors so that both
       * flavors can read old data or data from the other flavor. However, we strongly discourage
       * relying on this, as we have made incompatible changes to serialized forms in the past and
       * expect to do so again, as discussed in https://github.com/google/guava#important-warnings.
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 3.9K bytes
    - Viewed (0)
Back to top