Search Options

Results per page
Sort
Preferred Languages
Advance

Results 711 - 720 of 914 for iterate (0.06 sec)

  1. android/guava/src/com/google/common/base/MoreObjects.java

      /**
       * Returns the first of two given parameters that is not {@code null}, if either is, or otherwise
       * throws a {@link NullPointerException}.
       *
       * <p>To find the first non-null element in an iterable, use {@code Iterables.find(iterable,
       * Predicates.notNull())}. For varargs, use {@code Iterables.find(Arrays.asList(a, b, c, ...),
       * Predicates.notNull())}, static importing as necessary.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 10 15:41:27 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/cache/ForwardingLoadingCache.java

      @Override
      public V getUnchecked(K key) {
        return delegate().getUnchecked(key);
      }
    
      @CanIgnoreReturnValue // TODO(b/27479612): consider removing this
      @Override
      public ImmutableMap<K, V> getAll(Iterable<? extends K> keys) throws ExecutionException {
        return delegate().getAll(keys);
      }
    
      @Override
      public V apply(K key) {
        return delegate().apply(key);
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Aug 06 17:12:03 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/SortedMultisetTestSuiteBuilder.java

                  public SortedMultiset<E> create(Object... entries) {
                    return ((SortedMultiset<E>) super.create(entries)).descendingMultiset();
                  }
    
                  @Override
                  public Iterable<E> order(List<E> insertionOrder) {
                    return ImmutableList.copyOf(super.order(insertionOrder)).reverse();
                  }
                })
            .named(parentBuilder.getName() + " descending")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/NavigableSetTestSuiteBuilder.java

                  @Override
                  public E[] createArray(int length) {
                    return delegate.createArray(length);
                  }
    
                  @Override
                  public Iterable<E> order(List<E> insertionOrder) {
                    List<E> list = new ArrayList<>();
                    for (E e : delegate.order(insertionOrder)) {
                      list.add(e);
                    }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/HashMultiset.java

       *
       * @param elements the elements that the multiset should contain
       */
      public static <E extends @Nullable Object> HashMultiset<E> create(
          Iterable<? extends E> elements) {
        HashMultiset<E> multiset = create(Multisets.inferDistinctElements(elements));
        Iterables.addAll(multiset, elements);
        return multiset;
      }
    
      private HashMultiset() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

          return new SampleElements<>(1, 4, 3, 2, 5);
        }
    
        @Override
        public Integer[] createArray(int length) {
          return new Integer[length];
        }
    
        @Override
        public Iterable<Integer> order(List<Integer> insertionOrder) {
          return Ordering.natural().sortedCopy(insertionOrder);
        }
    
        @Override
        public Set<Integer> create(Object... elements) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  7. android/guava-testlib/test/com/google/common/collect/testing/SafeTreeMapTest.java

                          map.put(entry.getKey(), entry.getValue());
                        }
                        return map;
                      }
    
                      @Override
                      public Iterable<Entry<String, String>> order(
                          List<Entry<String, String>> insertionOrder) {
                        sort(
                            insertionOrder,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Mar 18 18:06:40 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  8. guava-testlib/test/com/google/common/collect/testing/SafeTreeMapTest.java

                          map.put(entry.getKey(), entry.getValue());
                        }
                        return map;
                      }
    
                      @Override
                      public Iterable<Entry<String, String>> order(
                          List<Entry<String, String>> insertionOrder) {
                        sort(
                            insertionOrder,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Mar 18 18:06:40 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/AbstractMapEntryTest.java

            return value;
          }
        };
      }
    
      private static <K extends @Nullable Object, V extends @Nullable Object> Entry<K, V> control(
          K key, V value) {
        return singletonMap(key, value).entrySet().iterator().next();
      }
    
      public void testToString() {
        assertEquals("foo=1", entry("foo", 1).toString());
      }
    
      public void testToStringNull() {
        assertEquals("null=1", entry(NK, 1).toString());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapRemoveTester.java

          resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v1()), mapEntry(k0(), v0()));
          List<V> expectedValues = copyToList(values);
    
          Entry<K, Collection<V>> asMapEntry = multimap().asMap().entrySet().iterator().next();
          List<V> asMapValue = (List<V>) asMapEntry.getValue();
          asMapValue.remove(i);
          expectedValues.remove(i);
    
          assertGet(k0(), expectedValues);
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top