Search Options

Results per page
Sort
Preferred Languages
Advance

Results 381 - 390 of 886 for nullable (0.04 sec)

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

        IntegerDomain() {
          super(true);
        }
    
        @Override
        public @Nullable Integer next(Integer value) {
          int i = value;
          return (i == Integer.MAX_VALUE) ? null : i + 1;
        }
    
        @Override
        public @Nullable Integer previous(Integer value) {
          int i = value;
          return (i == Integer.MIN_VALUE) ? null : i - 1;
        }
    
        @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableRangeMap.java

       * @since 28.1
       */
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      public final void merge(
          Range<K> range,
          @Nullable V value,
          BiFunction<? super V, ? super @Nullable V, ? extends @Nullable V> remappingFunction) {
        throw new UnsupportedOperationException();
      }
    
      @Override
      public ImmutableMap<Range<K>, V> asMapOfRanges() {
        if (ranges.isEmpty()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableMultimap.java

       * created multimaps.
       *
       * @since 2.0
       */
      @DoNotMock
      public static class Builder<K, V> {
        @Nullable Map<K, ImmutableCollection.Builder<V>> builderMap;
        @Nullable Comparator<? super K> keyComparator;
        @Nullable Comparator<? super V> valueComparator;
        int expectedValuesPerKey = ImmutableCollection.Builder.DEFAULT_INITIAL_CAPACITY;
    
        /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 28.6K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/TestSortedMapGenerator.java

    import java.util.SortedMap;
    import org.jspecify.annotations.NullMarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Creates sorted maps, containing sample elements, to be tested.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @NullMarked
    public interface TestSortedMapGenerator<K extends @Nullable Object, V extends @Nullable Object>
        extends TestMapGenerator<K, V> {
      @Override
      SortedMap<K, V> create(Object... elements);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

        CountDownLatch enterLatch = new CountDownLatch(1);
        CountDownLatch exitLatch = new CountDownLatch(1);
        TrustedListenableFutureTask<@Nullable Void> task =
            TrustedListenableFutureTask.create(
                new Callable<@Nullable Void>() {
                  @Override
                  public @Nullable Void call() throws Exception {
                    enterLatch.countDown();
                    new CountDownLatch(1).await(); // wait forever
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/hash/Funnels.java

       *
       * @since 15.0
       */
      public static <E extends @Nullable Object> Funnel<Iterable<? extends E>> sequentialFunnel(
          Funnel<E> elementFunnel) {
        return new SequentialFunnel<>(elementFunnel);
      }
    
      private static final class SequentialFunnel<E extends @Nullable Object>
          implements Funnel<Iterable<? extends E>> {
        private final Funnel<E> elementFunnel;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/SortedSetMultimap.java

     * "https://github.com/google/guava/wiki/NewCollectionTypesExplained#multimap">{@code Multimap}</a>.
     *
     * @author Jared Levy
     * @since 2.0
     */
    @GwtCompatible
    public interface SortedSetMultimap<K extends @Nullable Object, V extends @Nullable Object>
        extends SetMultimap<K, V> {
      // Following Javadoc copied from Multimap.
    
      /**
       * Returns a collection view of all values associated with a key. If no mappings in the multimap
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/hash/Funnels.java

       *
       * @since 15.0
       */
      public static <E extends @Nullable Object> Funnel<Iterable<? extends E>> sequentialFunnel(
          Funnel<E> elementFunnel) {
        return new SequentialFunnel<>(elementFunnel);
      }
    
      private static final class SequentialFunnel<E extends @Nullable Object>
          implements Funnel<Iterable<? extends E>> {
        private final Funnel<E> elementFunnel;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/Collections2Test.java

        return CollectionTestSuiteBuilder.using(
                new TestStringCollectionGenerator() {
                  @Override
                  public Collection<@Nullable String> create(@Nullable String[] elements) {
                    List<@Nullable String> list = new ArrayList<>();
                    for (String element : elements) {
                      list.add((element == null) ? null : "q" + element);
                    }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/AbstractSortedMultiset.java

      @Override
      public Comparator<? super E> comparator() {
        return comparator;
      }
    
      @Override
      public @Nullable Entry<E> firstEntry() {
        Iterator<Entry<E>> entryIterator = entryIterator();
        return entryIterator.hasNext() ? entryIterator.next() : null;
      }
    
      @Override
      public @Nullable Entry<E> lastEntry() {
        Iterator<Entry<E>> entryIterator = descendingEntryIterator();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 4.5K bytes
    - Viewed (0)
Back to top