Search Options

Results per page
Sort
Preferred Languages
Advance

Results 321 - 330 of 875 for Nullable (0.25 sec)

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

       */
      public static <T extends @Nullable Object> Iterable<List<@Nullable T>> paddedPartition(
          Iterable<T> iterable, int size) {
        checkNotNull(iterable);
        checkArgument(size > 0);
        return new FluentIterable<List<@Nullable T>>() {
          @Override
          public Iterator<List<@Nullable T>> iterator() {
            return Iterators.paddedPartition(iterable.iterator(), size);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 43.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

      }
    
      public void testCopyOf_nullArray() {
        assertThrows(NullPointerException.class, () -> copyOf((String[]) null));
      }
    
      public void testCopyOf_arrayContainingOnlyNull() {
        @Nullable String[] array = new @Nullable String[] {null};
        assertThrows(NullPointerException.class, () -> copyOf((String[]) array));
      }
    
      public void testCopyOf_collection_empty() {
        Collection<String> c = MinimalCollection.of();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/CompactHashMap.java

      @Override
      public @Nullable V remove(@Nullable Object key) {
        Map<K, V> delegate = delegateOrNull();
        if (delegate != null) {
          return delegate.remove(key);
        }
        Object oldValue = removeHelper(key);
        return (oldValue == NOT_FOUND) ? null : (V) oldValue;
      }
    
      private @Nullable Object removeHelper(@Nullable Object key) {
        if (needsAllocArrays()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 39.6K bytes
    - Viewed (0)
  4. android/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)
  5. android/guava-tests/test/com/google/common/collect/GeneralRangeTest.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * Tests for {@code GeneralRange}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @NullMarked
    public class GeneralRangeTest extends TestCase {
      private static final Ordering<@Nullable Integer> ORDERING =
          Ordering.<Integer>natural().<Integer>nullsFirst();
    
      private static final List<@Nullable Integer> IN_ORDER_VALUES =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  6. android/guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

                  }
    
                  @Override
                  public boolean equals(@Nullable Object o) {
                    return map.equals(o);
                  }
    
                  @Override
                  public String toString() {
                    return map.toString();
                  }
    
                  @Override
                  public @Nullable String remove(Object key) {
                    return map.remove(key);
                  }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu May 22 16:18:11 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

          List<@Nullable String> listWithNulls = asList("a", null, "b");
          assertThrows(NullPointerException.class, () -> builder.addAll((List<String>) listWithNulls));
        }
    
        {
          ImmutableMultiset.Builder<String> builder = ImmutableMultiset.builder();
          Multiset<@Nullable String> multisetWithNull =
              LinkedHashMultiset.create(Arrays.<@Nullable String>asList("a", null, "b"));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/DirectedGraphConnections.java

       * not have been inserted consecutively.
       */
      private final @Nullable List<NodeConnection<N>> orderedNodeConnections;
    
      private int predecessorCount;
      private int successorCount;
    
      private DirectedGraphConnections(
          Map<N, Object> adjacentNodeValues,
          @Nullable List<NodeConnection<N>> orderedNodeConnections,
          int predecessorCount,
          int successorCount) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

        public CustomScheduler() {}
    
        /** A callable class that can reschedule itself using a {@link CustomScheduler}. */
        private final class ReschedulableCallable implements Callable<@Nullable Void> {
    
          /** The underlying task. */
          private final Runnable wrappedRunnable;
    
          /** The executor on which this Callable will be scheduled. */
          private final ScheduledExecutorService executor;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 27.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/Function.java

     *
     * @author Kevin Bourrillion
     * @since 2.0
     */
    @GwtCompatible
    @FunctionalInterface
    public interface Function<F extends @Nullable Object, T extends @Nullable Object>
        extends java.util.function.Function<F, T> {
      @Override
      @ParametricNullness
      T apply(@ParametricNullness F input);
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Apr 15 22:14:00 UTC 2025
    - 2.6K bytes
    - Viewed (0)
Back to top