Search Options

Results per page
Sort
Preferred Languages
Advance

Results 381 - 390 of 878 for Nullable (0.39 sec)

  1. 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)
  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/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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. android/guava/src/com/google/common/collect/ForwardingSortedMultiset.java

        }
      }
    
      @Override
      public @Nullable Entry<E> firstEntry() {
        return delegate().firstEntry();
      }
    
      /**
       * A sensible definition of {@link #firstEntry()} in terms of {@code entrySet().iterator()}.
       *
       * <p>If you override {@link #entrySet()}, you may wish to override {@link #firstEntry()} to
       * forward to this implementation.
       */
      protected @Nullable Entry<E> standardFirstEntry() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/reflect/TypeParameter.java

     * @author Ben Yu
     * @since 12.0
     */
    /*
     * A nullable bound would let users create a TypeParameter instance for a parameter with a nullable
     * bound. However, it would also let them create `new TypeParameter<@Nullable T>() {}`, which
     * wouldn't behave as users might expect. Additionally, it's not clear how the TypeToken API could
     * support even a "normal" `TypeParameter<T>` when `<T>` has a nullable bound. (See the discussion
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ArrayListMultimap.java

     * "https://github.com/google/guava/wiki/NewCollectionTypesExplained#multimap">{@code Multimap}</a>.
     *
     * @author Jared Levy
     * @since 2.0
     */
    @GwtCompatible
    public final class ArrayListMultimap<K extends @Nullable Object, V extends @Nullable Object>
        extends AbstractListMultimap<K, V> {
      // Default from ArrayList
      private static final int DEFAULT_VALUES_PER_KEY = 3;
    
      @VisibleForTesting transient int expectedValuesPerKey;
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.8K bytes
    - Viewed (0)
Back to top