Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 875 for Nullable (0.45 sec)

  1. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

        @Nullable Segment<K, V, E, S> currentSegment;
        @Nullable AtomicReferenceArray<E> currentTable;
        @Nullable E nextEntry;
        @Nullable WriteThroughEntry nextExternal;
        @Nullable WriteThroughEntry lastReturned;
    
        HashIterator() {
          nextSegmentIndex = segments.length - 1;
          nextTableIndex = -1;
          advance();
        }
    
        @Override
        public abstract T next();
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 90K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

        public static Object good(
            String a,
            int b,
            // oneConstantOnly doesn't matter since it's not nullable and can be only 1 value.
            @SuppressWarnings("unused") OneConstantEnum oneConstantOnly,
            // noConstant doesn't matter since it can only be null
            @SuppressWarnings("unused") @Nullable NoConstantEnum noConstant) {
          return new GoodEquals(a, b);
        }
    
        // instance method ignored
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/TreeMultiset.java

            header);
      }
    
      private static final class Reference<T> {
        private @Nullable T value;
    
        @Nullable T get() {
          return value;
        }
    
        void checkAndSet(@Nullable T expected, @Nullable T newValue) {
          if (value != expected) {
            throw new ConcurrentModificationException();
          }
          value = newValue;
        }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 33.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/QueuesTest.java

        @SuppressWarnings("unused") // https://errorprone.info/bugpattern/FutureReturnValueIgnored
        Future<?> possiblyIgnoredError =
            threadPool.submit(
                new Callable<@Nullable Void>() {
                  @Override
                  public @Nullable Void call() throws InterruptedException {
                    new Producer(q, 50).call();
                    new Interrupter(mainThread).run();
                    new Producer(q, 50).call();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Multimap.java

     *
     * @author Jared Levy
     * @since 2.0
     */
    @DoNotMock("Use ImmutableMultimap, HashMultimap, or another implementation")
    @GwtCompatible
    public interface Multimap<K extends @Nullable Object, V extends @Nullable Object> {
      // Query Operations
    
      /**
       * Returns the number of key-value pairs in this multimap.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableMap.java

        return size() == 0;
      }
    
      @Override
      public boolean containsKey(@Nullable Object key) {
        return get(key) != null;
      }
    
      @Override
      public boolean containsValue(@Nullable Object value) {
        return values().contains(value);
      }
    
      // Overriding to mark it Nullable
      @Override
      public abstract @Nullable V get(@Nullable Object key);
    
      /**
       * @since 21.0 (but only since 23.5 in the Android <a
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 44.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/MapIteratorCache.java

            return backingMap.size();
          }
    
          @Override
          public boolean contains(@Nullable Object key) {
            return containsKey(key);
          }
        };
      }
    
      // Internal methods (package-visible, but treat as only subclass-visible)
    
      @Nullable V getIfCached(@Nullable Object key) {
        Entry<K, V> entry = cacheEntry; // store local reference for thread-safety
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/TablesTransformValuesTest.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * Test cases for {@link Tables#transformValues}.
     *
     * @author Jared Levy
     */
    @GwtCompatible
    @NullMarked
    public class TablesTransformValuesTest extends AbstractTableTest<Character> {
    
      private static final Function<@Nullable String, @Nullable Character> FIRST_CHARACTER =
          new Function<@Nullable String, @Nullable Character>() {
            @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ForwardingBlockingDeque.java

      @Override
      public E takeLast() throws InterruptedException {
        return delegate().takeLast();
      }
    
      @Override
      public @Nullable E pollFirst(long timeout, TimeUnit unit) throws InterruptedException {
        return delegate().pollFirst(timeout, unit);
      }
    
      @Override
      public @Nullable E pollLast(long timeout, TimeUnit unit) throws InterruptedException {
        return delegate().pollLast(timeout, unit);
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/LinkedListMultimap.java

       */
    
      static final class Node<K extends @Nullable Object, V extends @Nullable Object>
          extends SimpleEntry<K, V> {
        @Nullable Node<K, V> next; // the next node (with any key)
        @Weak @Nullable Node<K, V> previous; // the previous node (with any key)
        @Nullable Node<K, V> nextSibling; // the next node with the same key
        @Weak @Nullable Node<K, V> previousSibling; // the previous node with the same key
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 26.6K bytes
    - Viewed (0)
Back to top