Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 875 for Nullable (0.76 sec)

  1. guava/src/com/google/common/collect/ForwardingMap.java

      @CanIgnoreReturnValue
      @Override
      public @Nullable V remove(@Nullable Object key) {
        return delegate().remove(key);
      }
    
      @Override
      public void clear() {
        delegate().clear();
      }
    
      @Override
      public boolean containsKey(@Nullable Object key) {
        return delegate().containsKey(key);
      }
    
      @Override
      public boolean containsValue(@Nullable Object value) {
        return delegate().containsValue(value);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 17:32:30 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/FilteredEntryMultimap.java

    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.Set;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Implementation of {@link Multimaps#filterEntries(Multimap, Predicate)}.
     *
     * @author Jared Levy
     * @author Louis Wasserman
     */
    @GwtCompatible
    class FilteredEntryMultimap<K extends @Nullable Object, V extends @Nullable Object>
        extends AbstractMultimap<K, V> implements FilteredMultimap<K, V> {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  3. 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)
  4. android/guava/src/com/google/common/collect/TreeBasedTable.java

        return new TreeRow(rowKey);
      }
    
      private final class TreeRow extends Row implements SortedMap<C, V> {
        final @Nullable C lowerBound;
        final @Nullable C upperBound;
    
        TreeRow(R rowKey) {
          this(rowKey, null, null);
        }
    
        TreeRow(R rowKey, @Nullable C lowerBound, @Nullable C upperBound) {
          super(rowKey);
          this.lowerBound = lowerBound;
          this.upperBound = upperBound;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 15:05:43 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/TreeRangeSet.java

        public Comparator<? super Cut<C>> comparator() {
          return Ordering.<Cut<C>>natural();
        }
    
        @Override
        public boolean containsKey(@Nullable Object key) {
          return get(key) != null;
        }
    
        @Override
        public @Nullable Range<C> get(@Nullable Object key) {
          if (key instanceof Cut) {
            try {
              @SuppressWarnings("unchecked") // we catch CCEs
              Cut<C> cut = (Cut<C>) key;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 32.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/CompactLinkedHashSet.java

     *
     * @author Louis Wasserman
     */
    @GwtIncompatible // not worth using in GWT for now
    final class CompactLinkedHashSet<E extends @Nullable Object> extends CompactHashSet<E> {
    
      /** Creates an empty {@code CompactLinkedHashSet} instance. */
      public static <E extends @Nullable Object> CompactLinkedHashSet<E> create() {
        return new CompactLinkedHashSet<>();
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 14:59:07 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  7. 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)
  8. android/guava/src/com/google/common/util/concurrent/FakeTimeLimiter.java

      @Override
      @ParametricNullness
      public <T extends @Nullable Object> T callWithTimeout(
          Callable<T> callable, long timeoutDuration, TimeUnit timeoutUnit) throws ExecutionException {
        checkNotNull(callable);
        checkNotNull(timeoutUnit);
        try {
          return callable.call();
        } catch (RuntimeException e) {
          throw new UncheckedExecutionException(e);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  9. 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)
  10. android/guava/src/com/google/common/collect/RegularImmutableMap.java

         */
        if (result == null) {
          return null;
        } else {
          return (V) result;
        }
      }
    
      static @Nullable Object get(
          @Nullable Object hashTableObject,
          @Nullable Object[] alternatingKeysAndValues,
          int size,
          int keyOffset,
          @Nullable Object key) {
        if (key == null) {
          return null;
        } else if (size == 1) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 22.5K bytes
    - Viewed (0)
Back to top