Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 317 for nilable (0.33 sec)

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

    import com.google.common.annotations.GwtCompatible;
    import java.util.Comparator;
    import java.util.Iterator;
    import java.util.List;
    import java.util.stream.Collector;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Provides static methods for working with {@link Comparator} instances. For many other helpful
     * comparator utilities, see either {@code Comparator} itself (for Java 8+), or {@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/TableCollectionTest.java

          table.put('b', "four", 4);
          return table.row('a');
        }
      }
    
      static final Function<@Nullable Integer, @Nullable Integer> DIVIDE_BY_2 =
          new Function<@Nullable Integer, @Nullable Integer>() {
            @Override
            public @Nullable Integer apply(@Nullable Integer input) {
              return (input == null) ? null : input / 2;
            }
          };
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 35.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

       * normally.
       */
      public void assertPriorCallReturns(@Nullable String methodName) throws Exception {
        assertEquals(null, getResponse(methodName).getResult());
      }
    
      /**
       * Asserts that a prior call that had caused this thread to block or wait has since returned the
       * expected boolean value.
       */
      public void assertPriorCallReturns(boolean expected, @Nullable String methodName)
          throws Exception {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

          new IteratorOperation() {
            @Override
            public @Nullable Object execute(Iterator<?> iterator) {
              iterator.remove();
              return null;
            }
          };
    
      private static final IteratorOperation NEXT_METHOD =
          new IteratorOperation() {
            @Override
            public @Nullable Object execute(Iterator<?> iterator) {
              return iterator.next();
            }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/LinkedListMultimap.java

     *
     * @author Mike Bostock
     * @since 2.0
     */
    @GwtCompatible(serializable = true, emulated = true)
    @ElementTypesAreNonnullByDefault
    public class LinkedListMultimap<K extends @Nullable Object, V extends @Nullable Object>
        extends AbstractMultimap<K, V> implements ListMultimap<K, V>, Serializable {
      /*
       * Order is maintained using a linked list containing all key-value pairs. In
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 27.2K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

        } catch (UnsupportedOperationException e) {
          return;
        }
    
        map.put(null, unmappedValue);
        Entry<@Nullable K, V> entry = mapEntry(null, unmappedValue);
        assertTrue(entrySet.contains(entry));
        Entry<@Nullable K, @Nullable V> nonEntry = mapEntry(null, null);
        assertFalse(entrySet.contains(nonEntry));
      }
    
      public void testEntrySetContainsEntryNullKeyMissing() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/DenseImmutableTable.java

      DenseImmutableTable(
          ImmutableList<Cell<R, C, V>> cellList,
          ImmutableSet<R> rowSpace,
          ImmutableSet<C> columnSpace) {
        @SuppressWarnings("unchecked")
        @Nullable
        V[][] array = (@Nullable V[][]) new Object[rowSpace.size()][columnSpace.size()];
        this.values = array;
        this.rowKeyToIndex = Maps.indexMap(rowSpace);
        this.columnKeyToIndex = Maps.indexMap(columnSpace);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 10K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Collections2.java

       */
      public static <F extends @Nullable Object, T extends @Nullable Object> Collection<T> transform(
          Collection<F> fromCollection, Function<? super F, T> function) {
        return new TransformedCollection<>(fromCollection, function);
      }
    
      static class TransformedCollection<F extends @Nullable Object, T extends @Nullable Object>
          extends AbstractCollection<T> {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/FluentFuture.java

    @ElementTypesAreNonnullByDefault
    public abstract class FluentFuture<V extends @Nullable Object>
        extends GwtFluentFutureCatchingSpecialization<V> {
    
      /**
       * A less abstract subclass of AbstractFuture. This can be used to optimize setFuture by ensuring
       * that {@link #get} calls exactly the implementation of {@link AbstractFuture#get}.
       */
      abstract static class TrustedFuture<V extends @Nullable Object> extends FluentFuture<V>
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 11 19:08:44 GMT 2023
    - 18.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        try {
          copyOf((String[]) null);
          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      public void testCopyOf_arrayContainingOnlyNull() {
        @Nullable String[] array = new @Nullable String[] {null};
        try {
          copyOf((String[]) array);
          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      public void testCopyOf_collection_empty() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
Back to top