Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 453 for Iterables (0.08 sec)

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

       * com.google.common.collect.testing.features.CollectionFeature#KNOWN_ORDER}, the tests will look
       * only at the returned contents without regard for order.
       */
      Iterable<E> order(List<E> insertionOrder);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/AbstractMultimap.java

      @Override
      public boolean put(@ParametricNullness K key, @ParametricNullness V value) {
        return get(key).add(value);
      }
    
      @CanIgnoreReturnValue
      @Override
      public boolean putAll(@ParametricNullness K key, Iterable<? extends V> values) {
        checkNotNull(values);
        // make sure we only call values.iterator() once
        // and we only call get(key) if values is nonempty
        if (values instanceof Collection) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 21:08:00 UTC 2021
    - 6.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/Striped.java

       * @return the stripes corresponding to the objects (one per each object, derived by delegating to
       *     {@link #get(Object)}; may contain duplicates), in an increasing index order.
       */
      public Iterable<L> bulkGet(Iterable<? extends Object> keys) {
        // Initially using the list to store the keys, then reusing it to store the respective L's
        List<Object> result = newArrayList(keys);
        if (result.isEmpty()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 26 12:58:35 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

                        return (Entry<Range<Integer>, String>[]) new Entry<?, ?>[length];
                      }
    
                      @Override
                      public Iterable<Entry<Range<Integer>, String>> order(
                          List<Entry<Range<Integer>, String>> insertionOrder) {
                        return Range.<Integer>rangeLexOrdering().onKeys().sortedCopy(insertionOrder);
                      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun Oct 06 13:04:03 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetTestSuiteBuilder.java

          return ((Multiset<E>) gen.create(duplicated)).elementSet();
        }
    
        @Override
        public E[] createArray(int length) {
          return gen.createArray(length);
        }
    
        @Override
        public Iterable<E> order(List<E> insertionOrder) {
          return gen.order(new ArrayList<E>(new LinkedHashSet<E>(insertionOrder)));
        }
      }
    
      static class EntrySetGenerator<E> implements TestSetGenerator<Multiset.Entry<E>> {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

        UNKNOWN_ORDER
      }
    
      @SuppressWarnings("unchecked") // TODO(cpovirk): Stop using arrays.
      AbstractIteratorTester(
          int steps,
          Iterable<E> elementsToInsertIterable,
          Iterable<? extends IteratorFeature> features,
          Iterable<E> expectedElements,
          KnownOrder knownOrder,
          int startIndex) {
        // periodically we should manually try (steps * 3 / 2) here; all tests but
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

        @Override
        public SampleElements<String> sampleValues() {
          return new SampleElements<>("january", "february", "march", "april", "may");
        }
    
        @Override
        public Collection<String> createCollection(Iterable<? extends String> values) {
          return Lists.newArrayList(values);
        }
    
        @Override
        public SampleElements<Entry<String, String>> samples() {
          return new SampleElements<>(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/io/ClassTraversalUtil.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.util.jar.JarEntry;
    import java.util.jar.JarFile;
    import java.util.zip.ZipEntry;
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

        assertTrue(multiset.isEmpty());
        reserializeAndAssert(multiset);
      }
    
      public void testCreateFromIterable() {
        Iterable<Integer> iterable = asList(1, 2, 2, 3, 4);
        ConcurrentHashMultiset<Integer> multiset = ConcurrentHashMultiset.create(iterable);
        assertEquals(2, multiset.count(2));
        reserializeAndAssert(multiset);
      }
    
      public void testIdentityKeyEquality_strongKeys() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/DefaultProjectDependenciesResolver.java

                projectIds.add(key);
            }
            return projectIds;
        }
    
        private Set<String> getIgnorableArtifacts(Iterable<Artifact> artifactIterable) {
            Set<String> projectIds = new HashSet<>();
    
            for (Artifact artifact : artifactIterable) {
                String key = ArtifactUtils.key(artifact);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top