Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 804 for nullable (0.14 sec)

  1. guava-tests/test/com/google/common/collect/AbstractMapEntryTest.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * Tests for {@code AbstractMapEntry}.
     *
     * @author Mike Bostock
     */
    @GwtCompatible
    @NullMarked
    public class AbstractMapEntryTest extends TestCase {
      private static final @Nullable String NK = null;
      private static final @Nullable Integer NV = null;
    
      private static <K extends @Nullable Object, V extends @Nullable Object> Entry<K, V> entry(
          K key, V value) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapReplaceValuesTester.java

        multimap().replaceValues(k3(), values);
        assertGet(k3(), values);
        assertEquals(size + values.size(), multimap().size());
      }
    
      @SuppressWarnings("EmptyList") // ImmutableList doesn't support nullable element types
      @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE})
      public void testReplaceValuesWithEmpty() {
        int size = multimap().size();
        List<V> oldValues = new ArrayList<>(multimap().get(k0()));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Apr 12 15:07:59 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/FunctionsTest.java

    import org.jspecify.annotations.NullMarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Tests for {@link Functions}.
     *
     * @author Mike Bostock
     * @author Vlad Patryshev
     */
    @GwtCompatible
    @NullMarked
    public class FunctionsTest extends TestCase {
    
      public void testIdentity_same() {
        Function<@Nullable String, @Nullable String> identity = Functions.identity();
        assertNull(identity.apply(null));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableList.java

    import java.util.List;
    import org.jspecify.annotations.Nullable;
    
    /**
     * GWT emulated version of {@link ImmutableList}. TODO(cpovirk): more doc
     *
     * @author Hayward Chan
     */
    abstract class ForwardingImmutableList<E> extends ImmutableList<E> {
    
      ForwardingImmutableList() {}
    
      abstract List<E> delegateList();
    
      @Override
      public int indexOf(@Nullable Object object) {
        return delegateList().indexOf(object);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/AbstractListeningExecutorService.java

       */
      @CanIgnoreReturnValue // TODO(kak): consider removing this
      @Override
      protected final <T extends @Nullable Object> RunnableFuture<T> newTaskFor(Callable<T> callable) {
        return TrustedListenableFutureTask.create(callable);
      }
    
      @CanIgnoreReturnValue // TODO(kak): consider removing this
      @Override
      public ListenableFuture<?> submit(Runnable task) {
        return (ListenableFuture<?>) super.submit(task);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 17:47:46 UTC 2025
    - 3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/reflect/TypeParameter.java

     * @author Ben Yu
     * @since 12.0
     */
    /*
     * A nullable bound would let users create a TypeParameter instance for a parameter with a nullable
     * bound. However, it would also let them create `new TypeParameter<@Nullable T>() {}`, which
     * wouldn't behave as users might expect. Additionally, it's not clear how the TypeToken API could
     * support even a "normal" `TypeParameter<T>` when `<T>` has a nullable bound. (See the discussion
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/base/JoinerTest.java

      private static final Iterable<@Nullable Integer> iterableNull = Arrays.asList((Integer) null);
      private static final Iterable<@Nullable Integer> iterableNullNull =
          Arrays.asList((Integer) null, null);
      private static final Iterable<@Nullable Integer> iterableNull1 = Arrays.asList(null, 1);
      private static final Iterable<@Nullable Integer> iterable1Null = Arrays.asList(1, null);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/AbstractTable.java

          }
        }
        return false;
      }
    
      @Override
      public boolean contains(@Nullable Object rowKey, @Nullable Object columnKey) {
        Map<C, V> row = safeGet(rowMap(), rowKey);
        return row != null && Maps.safeContainsKey(row, columnKey);
      }
    
      @Override
      public @Nullable V get(@Nullable Object rowKey, @Nullable Object columnKey) {
        Map<C, V> row = safeGet(rowMap(), rowKey);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/util/concurrent/ImmediateFuture.java

    import java.util.logging.Level;
    import org.jspecify.annotations.Nullable;
    
    /** Implementation of {@link Futures#immediateFuture}. */
    @GwtCompatible
    // TODO(cpovirk): Make this final (but that may break Mockito spy calls).
    class ImmediateFuture<V extends @Nullable Object> implements ListenableFuture<V> {
      static final ListenableFuture<?> NULL = new ImmediateFuture<@Nullable Object>(null);
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingSortedMultiset.java

        }
      }
    
      @Override
      public @Nullable Entry<E> firstEntry() {
        return delegate().firstEntry();
      }
    
      /**
       * A sensible definition of {@link #firstEntry()} in terms of {@code entrySet().iterator()}.
       *
       * <p>If you override {@link #entrySet()}, you may wish to override {@link #firstEntry()} to
       * forward to this implementation.
       */
      protected @Nullable Entry<E> standardFirstEntry() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top