Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 875 for Nullable (0.26 sec)

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

    import com.google.common.base.Predicate;
    import java.util.List;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Implementation of {@link Multimaps#filterKeys(ListMultimap, Predicate)}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    final class FilteredKeyListMultimap<K extends @Nullable Object, V extends @Nullable Object>
        extends FilteredKeyMultimap<K, V> implements ListMultimap<K, V> {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Platform.java

    import java.util.Map;
    import java.util.Set;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Methods factored out so that they can be emulated differently in GWT.
     *
     * @author Hayward Chan
     */
    @GwtCompatible
    final class Platform {
      /** Returns the platform preferred implementation of a map based on a hash table. */
      static <K extends @Nullable Object, V extends @Nullable Object>
          Map<K, V> newHashMapWithExpectedSize(int expectedSize) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/NaturalOrdering.java

      // TODO: b/287198172 - Consider eagerly initializing these (but think about serialization).
      @LazyInit private transient @Nullable Ordering<@Nullable Comparable<?>> nullsFirst;
      @LazyInit private transient @Nullable Ordering<@Nullable Comparable<?>> nullsLast;
    
      @Override
      @SuppressWarnings("unchecked") // TODO(kevinb): the right way to explain this??
      public int compare(Comparable<?> left, Comparable<?> right) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jun 04 13:03:16 UTC 2025
    - 3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/SimpleTimeLimiter.java

      }
    
      @ParametricNullness
      private <T extends @Nullable Object> T callWithTimeout(
          Callable<T> callable, long timeoutDuration, TimeUnit timeoutUnit, boolean amInterruptible)
          throws Exception {
        checkNotNull(callable);
        checkNotNull(timeoutUnit);
        checkPositiveTimeout(timeoutDuration);
    
        Future<T> future = executor.submit(callable);
    
        try {
          return amInterruptible
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java

        };
      }
    
      @Override
      public @Nullable Entry<K, V> firstEntry() {
        return delegate.firstEntry();
      }
    
      @Override
      public K firstKey() {
        return delegate.firstKey();
      }
    
      @Override
      public @Nullable Entry<K, V> floorEntry(K key) {
        return delegate.floorEntry(checkValid(key));
      }
    
      @Override
      public @Nullable K floorKey(K key) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Platform.java

    import java.util.concurrent.ConcurrentHashMap;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Methods factored out so that they can be emulated differently in GWT.
     *
     * @author Hayward Chan
     */
    @GwtCompatible
    final class Platform {
    
      /** Returns the platform preferred implementation of a map based on a hash table. */
      static <K extends @Nullable Object, V extends @Nullable Object>
          Map<K, V> newHashMapWithExpectedSize(int expectedSize) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java

      @Override
      public <T extends @NonNull B> @Nullable T getInstance(Class<T> type) {
        return trustedGet(TypeToken.of(type));
      }
    
      @Override
      public <T extends @NonNull B> @Nullable T getInstance(TypeToken<T> type) {
        return trustedGet(type.rejectTypeVariables());
      }
    
      @Override
      @CanIgnoreReturnValue
      public <T extends B> @Nullable T putInstance(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

      @Generates
      static <K, V> Map<K, V> generateMap(@Nullable K key, @Nullable V value) {
        return generateHashdMap(key, value);
      }
    
      @Generates
      static <K, V> HashMap<K, V> generateHashdMap(@Nullable K key, @Nullable V value) {
        return generateLinkedHashMap(key, value);
      }
    
      @Generates
      static <K, V> LinkedHashMap<K, V> generateLinkedHashMap(@Nullable K key, @Nullable V value) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 28.7K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/AbstractTester.java

     * @author George van den Driessche
     */
    @GwtCompatible
    @NullMarked
    public class AbstractTester<G> extends TestCase {
      private G subjectGenerator;
      private String suiteName;
      private @Nullable Runnable setUp;
      private @Nullable Runnable tearDown;
    
      // public so that it can be referenced in generated GWT tests.
      @Override
      public void setUp() throws Exception {
        if (setUp != null) {
          setUp.run();
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  10. android/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);
    
      /**
       * {@inheritDoc}
       *
       * <p>See <a
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 41.2K bytes
    - Viewed (0)
Back to top