Search Options

Results per page
Sort
Preferred Languages
Advance

Results 341 - 350 of 884 for nullable (0.32 sec)

  1. android/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.atomic.AtomicBoolean;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Tests for {@link GcFinalization}.
     *
     * @author Martin Buchholz
     * @author mike nonemacher
     */
    @AndroidIncompatible // depends on details of gc
    
    @NullUnmarked
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/TransposedTableTest.java

    import org.jspecify.annotations.NullMarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Test cases for {@link Tables#transpose}.
     *
     * @author Jared Levy
     */
    @GwtCompatible
    @NullMarked
    public class TransposedTableTest extends AbstractTableTest<Character> {
    
      @Override
      protected Table<String, Integer, Character> create(@Nullable Object... data) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/PeekingIterator.java

    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import com.google.errorprone.annotations.DoNotMock;
    import java.util.Iterator;
    import java.util.NoSuchElementException;
    import org.jspecify.annotations.Nullable;
    
    /**
     * An iterator that supports a one-element lookahead while iterating.
     *
     * <p>See the Guava User Guide article on <a href=
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/TreeRangeMap.java

          this.entryIterable = (Iterable) entryIterable;
        }
    
        @Override
        public boolean containsKey(@Nullable Object key) {
          return get(key) != null;
        }
    
        @Override
        public @Nullable V get(@Nullable Object key) {
          if (key instanceof Range) {
            Range<?> range = (Range<?>) key;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 15:05:43 UTC 2025
    - 22.8K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java

    // @Ignore affects the Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    @NullMarked
    public class MapPutAllTester<K extends @Nullable Object, V extends @Nullable Object>
        extends AbstractMapTester<K, V> {
      private List<Entry<K, V>> containsNullKey;
      private List<Entry<K, V>> containsNullValue;
    
      @Override
      public void setUp() throws Exception {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/reflect/SubtypeTester.java

    import java.lang.reflect.Type;
    import java.util.Arrays;
    import java.util.Comparator;
    import javax.lang.model.element.Modifier;
    import org.jspecify.annotations.NullUnmarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Tester of subtyping relationships between two types.
     *
     * <p>Tests should inherit from this class, and declare subtyping relationship with public methods
     * annotated by {@link TestSubtype}.
     *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/cache/RemovalNotification.java

       *
       * @since 19.0
       */
      public static <K, V> RemovalNotification<K, V> create(
          @Nullable K key, @Nullable V value, RemovalCause cause) {
        return new RemovalNotification<>(key, value, cause);
      }
    
      private RemovalNotification(@Nullable K key, @Nullable V value, RemovalCause cause) {
        super(key, value);
        this.cause = checkNotNull(cause);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/DescendingImmutableSortedSet.java

      }
    
      @Override
      public @Nullable E lower(E element) {
        return forward.higher(element);
      }
    
      @Override
      public @Nullable E floor(E element) {
        return forward.ceiling(element);
      }
    
      @Override
      public @Nullable E ceiling(E element) {
        return forward.floor(element);
      }
    
      @Override
      public @Nullable E higher(E element) {
        return forward.lower(element);
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

        @Override
        public boolean equals(@Nullable Object o) {
          return false;
        }
    
        @Override
        public int hashCode() {
          return super.hashCode();
        }
      }
    
      /** Test class that returns true if the test object is null */
      private static class InvalidEqualsNullObject {
    
        @Override
        public boolean equals(@Nullable Object o) {
          return o == this || o == null;
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed May 14 19:40:47 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableCollection.java

       *
       * 2. `other[size] = null` is unsound. We could "fix" this by requiring callers to pass in an
       * array with a nullable element type. But probably they usually want an array with a non-nullable
       * type. That said, we could *accept* a `@Nullable T[]` (which, given that we treat arrays as
       * covariant, would still permit a plain `T[]`) and return a plain `T[]`. But of course that would
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.7K bytes
    - Viewed (0)
Back to top