Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 989 for elemEnds (0.37 sec)

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

        return new Unhashables();
      }
    
      @Override
      public T create(Object... elements) {
        UnhashableObject[] array = createArray(elements.length);
        int i = 0;
        for (Object e : elements) {
          array[i++] = (UnhashableObject) e;
        }
        return create(array);
      }
    
      /**
       * Creates a new collection containing the given elements; implement this method instead of {@link
       * #create(Object...)}.
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/LinkedHashMultiset.java

      /**
       * Creates a new {@code LinkedHashMultiset} containing the specified elements.
       *
       * <p>This implementation is highly efficient when {@code elements} is itself a {@link Multiset}.
       *
       * @param elements the elements that the multiset should contain
       */
      public static <E extends @Nullable Object> LinkedHashMultiset<E> create(
          Iterable<? extends E> elements) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableList.java

        // We special-case for 0 or 1 elements, but going further is madness.
        if (!elements.hasNext()) {
          return of();
        }
        E first = elements.next();
        if (!elements.hasNext()) {
          return of(first);
        } else {
          return new ImmutableList.Builder<E>().add(first).addAll(elements).build();
        }
      }
    
      /**
       * Returns an immutable list containing the given elements, in order.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java

        }
    
        @SuppressWarnings("unchecked")
        @Override
        public BiMap<V, K> create(Object... elements) {
          Entry<?, ?>[] entries = new Entry<?, ?>[elements.length];
          for (int i = 0; i < elements.length; i++) {
            entries[i] = reverse((Entry<K, V>) elements[i]);
          }
          return generator.create((Object[]) entries).inverse();
        }
    
        @SuppressWarnings("unchecked")
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 26 19:46:10 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/CompactLinkedHashSet.java

        set.addAll(collection);
        return set;
      }
    
      /**
       * Creates a {@code CompactLinkedHashSet} instance containing the given elements in unspecified
       * order.
       *
       * @param elements the elements that the set should contain
       * @return a new {@code CompactLinkedHashSet} containing those elements (minus duplicates)
       */
      @SafeVarargs
      @SuppressWarnings("nullness") // TODO: b/316358623 - Remove after checker fix.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 05 21:38:59 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/CompactLinkedHashSet.java

        set.addAll(collection);
        return set;
      }
    
      /**
       * Creates a {@code CompactLinkedHashSet} instance containing the given elements in unspecified
       * order.
       *
       * @param elements the elements that the set should contain
       * @return a new {@code CompactLinkedHashSet} containing those elements (minus duplicates)
       */
      @SafeVarargs
      @SuppressWarnings("nullness") // TODO: b/316358623 - Remove after checker fix.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 05 21:38:59 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/CompactHashSetTest.java

        suite.addTest(
            SetTestSuiteBuilder.using(
                    new TestStringSetGenerator() {
                      @Override
                      protected Set<String> create(String[] elements) {
                        return CompactHashSet.create(Arrays.asList(elements));
                      }
                    })
                .named("CompactHashSet")
                .withFeatures(allFeatures)
                .createTestSuite());
        suite.addTest(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 20:09:59 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/LinkedHashMultiset.java

      /**
       * Creates a new {@code LinkedHashMultiset} containing the specified elements.
       *
       * <p>This implementation is highly efficient when {@code elements} is itself a {@link Multiset}.
       *
       * @param elements the elements that the multiset should contain
       */
      public static <E extends @Nullable Object> LinkedHashMultiset<E> create(
          Iterable<? extends E> elements) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java

      /** Returns an iterable whose iterator returns the given elements in order. */
      public static <E extends @Nullable Object> MinimalIterable<E> of(E... elements) {
        // Make sure to get an unmodifiable iterator
        return new MinimalIterable<>(Arrays.asList(elements).iterator());
      }
    
      /**
       * Returns an iterable whose iterator returns the given elements in order. The elements are copied
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/EnumMultiset.java

       * Creates a new {@code EnumMultiset} containing the specified elements.
       *
       * <p>This implementation is highly efficient when {@code elements} is itself a {@link Multiset}.
       *
       * @param elements the elements that the multiset should contain
       * @throws IllegalArgumentException if {@code elements} is empty
       */
      public static <E extends Enum<E>> EnumMultiset<E> create(Iterable<E> elements) {
        Iterator<E> iterator = elements.iterator();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top