Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 875 for Nullable (0.63 sec)

  1. android/guava/src/com/google/common/escape/Escapers.java

       * @return the replacement string, or {@code null} if no escaping was needed
       */
      public static @Nullable String computeReplacement(UnicodeEscaper escaper, int cp) {
        return stringOrNull(escaper.escape(cp));
      }
    
      private static @Nullable String stringOrNull(char @Nullable [] in) {
        return (in == null) ? null : new String(in);
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/SafeTreeSet.java

      public E last() {
        return delegate.last();
      }
    
      @Override
      public @Nullable E lower(E e) {
        return delegate.lower(checkValid(e));
      }
    
      @Override
      public @Nullable E pollFirst() {
        return delegate.pollFirst();
      }
    
      @Override
      public @Nullable E pollLast() {
        return delegate.pollLast();
      }
    
      @Override
      public boolean remove(Object object) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/MoreCollectors.java

        return (Collector) TO_OPTIONAL;
      }
    
      private static final Object NULL_PLACEHOLDER = new Object();
    
      private static final Collector<@Nullable Object, ?, @Nullable Object> ONLY_ELEMENT =
          Collector.<@Nullable Object, ToOptionalState, @Nullable Object>of(
              ToOptionalState::new,
              (state, o) -> state.add((o == null) ? NULL_PLACEHOLDER : o),
              ToOptionalState::combine,
              state -> {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:07:06 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/LinkedHashMultimap.java

      @VisibleForTesting
      static final class ValueEntry<K extends @Nullable Object, V extends @Nullable Object>
          extends SimpleImmutableEntry<K, V> {
        final int smearedValueHash;
    
        @Nullable ValueEntry<K, V> nextInValueBucket;
    
        private @Nullable ValueEntry<K, V> predecessorInValueSet;
        private @Nullable ValueEntry<K, V> successorInValueSet;
    
        private @Nullable ValueEntry<K, V> predecessorInMultimap;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/AbstractTableTest.java

    import org.jspecify.annotations.NullMarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Test cases for a {@link Table} implementation supporting reads and writes.
     *
     * @author Jared Levy
     * @author Louis Wasserman
     */
    @GwtCompatible
    @NullMarked
    public abstract class AbstractTableTest<C extends @Nullable Character>
        extends AbstractTableReadTest<C> {
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  6. guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/GwtFuturesCatchingSpecialization.java

       */
    
      public static <V extends @Nullable Object> ListenableFuture<V> catching(
          ListenableFuture<? extends V> input,
          Class<Throwable> exceptionType,
          Function<? super Throwable, ? extends V> fallback,
          Executor executor) {
        return AbstractCatchingFuture.create(input, exceptionType, fallback, executor);
      }
    
      public static <V extends @Nullable Object> ListenableFuture<V> catchingAsync(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ForwardingNavigableMap.java

    @GwtIncompatible
    public abstract class ForwardingNavigableMap<K extends @Nullable Object, V extends @Nullable Object>
        extends ForwardingSortedMap<K, V> implements NavigableMap<K, V> {
    
      /** Constructor for use by subclasses. */
      protected ForwardingNavigableMap() {}
    
      @Override
      protected abstract NavigableMap<K, V> delegate();
    
      @Override
      public @Nullable Entry<K, V> lowerEntry(@ParametricNullness K key) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ForwardingNavigableMap.java

    @GwtIncompatible
    public abstract class ForwardingNavigableMap<K extends @Nullable Object, V extends @Nullable Object>
        extends ForwardingSortedMap<K, V> implements NavigableMap<K, V> {
    
      /** Constructor for use by subclasses. */
      protected ForwardingNavigableMap() {}
    
      @Override
      protected abstract NavigableMap<K, V> delegate();
    
      @Override
      public @Nullable Entry<K, V> lowerEntry(@ParametricNullness K key) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/ForwardingListeningExecutorService.java

      protected abstract ListeningExecutorService delegate();
    
      @Override
      public <T extends @Nullable Object> ListenableFuture<T> submit(Callable<T> task) {
        return delegate().submit(task);
      }
    
      @Override
      public ListenableFuture<?> submit(Runnable task) {
        return delegate().submit(task);
      }
    
      @Override
      public <T extends @Nullable Object> ListenableFuture<T> submit(
          Runnable task, @ParametricNullness T result) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/SortedMultisets.java

        }
      }
    
      private static <E extends @Nullable Object> E getElementOrThrow(@Nullable Entry<E> entry) {
        if (entry == null) {
          throw new NoSuchElementException();
        }
        return entry.getElement();
      }
    
      private static <E extends @Nullable Object> @Nullable E getElementOrNull(
          @Nullable Entry<E> entry) {
        return (entry == null) ? null : entry.getElement();
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.5K bytes
    - Viewed (0)
Back to top