Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 804 for nullable (0.03 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

        Callable<@Nullable Void> callable =
            new Callable<@Nullable Void>() {
              @Override
              public @Nullable Void call() throws Exception {
                assertEquals(Thread.currentThread().getName(), newName.get());
                return null;
              }
            };
        Callables.threadRenaming(callable, newName).call();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  2. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableMap.java

        return delegate.isEmpty();
      }
    
      @Override
      public final boolean containsKey(@Nullable Object key) {
        return Maps.safeContainsKey(delegate, key);
      }
    
      @Override
      public final boolean containsValue(@Nullable Object value) {
        return delegate.containsValue(value);
      }
    
      @Override
      public @Nullable V get(@Nullable Object key) {
        return (key == null) ? null : Maps.safeGet(delegate, key);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/GeneralRangeTest.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * Tests for {@code GeneralRange}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @NullMarked
    public class GeneralRangeTest extends TestCase {
      private static final Ordering<@Nullable Integer> ORDERING =
          Ordering.<Integer>natural().<Integer>nullsFirst();
    
      private static final List<@Nullable Integer> IN_ORDER_VALUES =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ForwardingNavigableSet.java

     */
    @GwtIncompatible
    public abstract class ForwardingNavigableSet<E extends @Nullable Object>
        extends ForwardingSortedSet<E> implements NavigableSet<E> {
    
      /** Constructor for use by subclasses. */
      protected ForwardingNavigableSet() {}
    
      @Override
      protected abstract NavigableSet<E> delegate();
    
      @Override
      public @Nullable E lower(@ParametricNullness E e) {
        return delegate().lower(e);
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java

    import org.jspecify.annotations.Nullable;
    
    /** Implementations of {@code Futures.transform*}. */
    @GwtCompatible
    // Whenever both tests are cheap and functional, it's faster to use &, | instead of &&, ||
    @SuppressWarnings("ShortCircuitBoolean")
    abstract class AbstractTransformFuture<
            I extends @Nullable Object, O extends @Nullable Object, F, T extends @Nullable Object>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 20 18:03:37 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Equivalence.java

       *
       * @since 10.0
       */
      public static final class Wrapper<T extends @Nullable Object> implements Serializable {
        /*
         * Equivalence's type argument is always non-nullable: Equivalence<Number>, never
         * Equivalence<@Nullable Number>. That can still produce wrappers of various types --
         * Wrapper<Number>, Wrapper<Integer>, Wrapper<@Nullable Integer>, etc. If we used just
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 10 01:47:55 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java

        return super.containsAll(collection);
      }
    
      @Override
      public Iterator<E> iterator() {
        return asList(contents).iterator();
      }
    
      @Override
      public @Nullable Object[] toArray() {
        @Nullable Object[] result = new @Nullable Object[contents.length];
        arraycopy(contents, 0, result, 0, contents.length);
        return result;
      }
    
      /*
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/AllEqualOrdering.java

      public int compare(@Nullable Object left, @Nullable Object right) {
        return 0;
      }
    
      @Override
      public <E extends @Nullable Object> List<E> sortedCopy(Iterable<E> iterable) {
        return Lists.newArrayList(iterable);
      }
    
      @Override
      public <E> ImmutableList<E> immutableSortedCopy(Iterable<E> iterable) {
        return ImmutableList.copyOf(iterable);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jun 04 13:03:16 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/ListenableFutureTask.java

      /**
       * Creates a {@code ListenableFutureTask} that will upon running, execute the given {@code
       * Callable}.
       *
       * @param callable the callable task
       * @since 10.0
       */
      public static <V extends @Nullable Object> ListenableFutureTask<V> create(Callable<V> callable) {
        return new ListenableFutureTask<>(callable);
      }
    
      /**
       * Creates a {@code ListenableFutureTask} that will upon running, execute the given {@code
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/NullnessCasts.java

       * there's no way to assign a {@code @Nullable T} to a field {@code T foo;} and instruct the
       * analysis that that means "plain {@code T}" rather than the inferred type {@code @Nullable T}.
       * (And even if annotations on local variables were permitted as an optional hint, no annotation
       * would be the right tool for the job here: {@code @Nullable} is the annotation that we're trying
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 13 20:49:47 UTC 2025
    - 4K bytes
    - Viewed (0)
Back to top