Search Options

Results per page
Sort
Preferred Languages
Advance

Results 311 - 320 of 453 for Iterable (0.06 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/MapPutAllTester.java

      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutAll_nullCollectionReference() {
        assertThrows(NullPointerException.class, () -> getMap().putAll(null));
      }
    
      private void putAll(Iterable<Entry<K, V>> entries) {
        Map<K, V> map = new LinkedHashMap<>();
        for (Entry<K, V> entry : entries) {
          map.put(entry.getKey(), entry.getValue());
        }
        getMap().putAll(map);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/RelationshipTester.java

      }
    
      // TODO(cpovirk): should we reject null items, since the tests already check null automatically?
      @CanIgnoreReturnValue
      public RelationshipTester<T> addRelatedGroup(Iterable<? extends T> group) {
        groups.add(ImmutableList.copyOf(group));
        return this;
      }
    
      public void test() {
        for (int groupNumber = 0; groupNumber < groups.size(); groupNumber++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 25 11:57:12 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/reflect/SubtypeTester.java

     *
     * <pre>{@code
     * class MySubtypeTests extends SubtypeTester {
     *   @TestSubtype(suppressGetSubtype = true, suppressGetSupertype = true)
     *   public <T> Iterable<? extends T> listIsSubtypeOfIterable(List<T> list) {
     *     return isSubtype(list);
     *   }
     *
     *   @TestSubtype
     *   public List<String> intListIsNotSubtypeOfStringList(List<Integer> intList) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/SetMultimap.java

       * interface.
       *
       * <p>Any duplicates in {@code values} will be stored in the multimap once.
       */
      @CanIgnoreReturnValue
      @Override
      Set<V> replaceValues(@ParametricNullness K key, Iterable<? extends V> values);
    
      /**
       * {@inheritDoc}
       *
       * <p>Because a {@code SetMultimap} has unique values for a given key, this method returns a
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 24 17:47:51 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java

        runIteratorTest(UNMODIFIABLE, IteratorTester.KnownOrder.UNKNOWN_ORDER, getSampleElements());
      }
    
      private void runIteratorTest(
          Set<IteratorFeature> features, IteratorTester.KnownOrder knownOrder, Iterable<E> elements) {
        new IteratorTester<E>(
            Platform.collectionIteratorTesterNumIterations(), features, elements, knownOrder) {
          @Override
          protected Iterator<E> newTargetIterator() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/SetMultimap.java

       * interface.
       *
       * <p>Any duplicates in {@code values} will be stored in the multimap once.
       */
      @CanIgnoreReturnValue
      @Override
      Set<V> replaceValues(@ParametricNullness K key, Iterable<? extends V> values);
    
      /**
       * {@inheritDoc}
       *
       * <p>Because a {@code SetMultimap} has unique values for a given key, this method returns a
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 24 17:47:51 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

       * instance.
       */
      private final Map<Type, Integer> emptyInstanceGenerated = new HashMap<>();
    
      final <T> void addSampleInstances(Class<T> type, Iterable<? extends T> instances) {
        sampleInstances.putAll(checkNotNull(type), checkNotNull(instances));
      }
    
      /**
       * Returns a fresh instance for {@code type} if possible. The returned instance could be:
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/Files.java

       * @since 11.0
       */
      public static String simplifyPath(String pathname) {
        checkNotNull(pathname);
        if (pathname.length() == 0) {
          return ".";
        }
    
        // split the path apart
        Iterable<String> components = Splitter.on('/').omitEmptyStrings().split(pathname);
        List<String> path = new ArrayList<>();
    
        // resolve ., .., and //
        for (String component : components) {
          switch (component) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/io/ResourceTraversalUtil.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.io;
    
    import static org.codelibs.core.collection.EnumerationIterator.iterable;
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull;
    
    import java.io.File;
    import java.io.FilterInputStream;
    import java.io.IOException;
    import java.io.InputStream;
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  10. fastapi/openapi/models.py

    from enum import Enum
    from typing import Any, Callable, Dict, Iterable, List, Optional, Set, Type, Union
    
    from fastapi._compat import (
        PYDANTIC_V2,
        CoreSchema,
        GetJsonSchemaHandler,
        JsonSchemaValue,
        _model_rebuild,
        with_info_plain_validator_function,
    )
    from fastapi.logger import logger
    from pydantic import AnyUrl, BaseModel, Field
    from typing_extensions import Annotated, Literal, TypedDict
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 22:49:33 UTC 2024
    - 15K bytes
    - Viewed (0)
Back to top