Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 884 for nullable (0.04 sec)

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

      }
    
      public void testNullFriendlyTransform() {
        Iterator<@Nullable Integer> input = Arrays.<@Nullable Integer>asList(1, 2, null, 3).iterator();
        Iterator<String> result =
            Iterators.transform(
                input,
                new Function<@Nullable Integer, String>() {
                  @Override
                  public String apply(@Nullable Integer from) {
                    return String.valueOf(from);
                  }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 54.4K bytes
    - Viewed (0)
  2. 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)
  3. android/guava/src/com/google/common/collect/Serialization.java

       *
       * <p>The serialized output consists of the number of entries, first key, first value, second key,
       * second value, and so on.
       */
      static <K extends @Nullable Object, V extends @Nullable Object> void writeMap(
          Map<K, V> map, ObjectOutputStream stream) throws IOException {
        stream.writeInt(map.size());
        for (Map.Entry<K, V> entry : map.entrySet()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. 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)
  5. guava/src/com/google/common/collect/HashMultiset.java

    import java.io.ObjectOutputStream;
    import java.util.HashMap;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Multiset implementation backed by a {@link HashMap}.
     *
     * @author Kevin Bourrillion
     * @author Jared Levy
     * @since 2.0
     */
    @GwtCompatible
    public final class HashMultiset<E extends @Nullable Object> extends AbstractMapBasedMultiset<E> {
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  6. 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)
  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/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)
  9. 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)
  10. android/guava/src/com/google/common/graph/UndirectedMultiNetworkConnections.java

        Multiset<N> adjacentNodes = getReference(adjacentNodesReference);
        if (adjacentNodes != null) {
          checkState(adjacentNodes.add(node));
        }
      }
    
      private static <T> @Nullable T getReference(@Nullable Reference<T> reference) {
        return (reference == null) ? null : reference.get();
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top