Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 121 - 130 of 174 for naturally (0.54 seconds)

  1. android/guava-tests/test/com/google/common/util/concurrent/StripedTest.java

            for (int i = 0; i < objectsNum; i++) {
              objects.add(new Object());
            }
    
            Iterable<?> locks = striped.bulkGet(objects);
            assertTrue(Ordering.natural().onResultOf(Functions.forMap(indexByLock)).isOrdered(locks));
    
            // check idempotency
            Iterable<?> locks2 = striped.bulkGet(objects);
            assertEquals(Lists.newArrayList(locks), Lists.newArrayList(locks2));
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:19:59 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/StripedTest.java

            for (int i = 0; i < objectsNum; i++) {
              objects.add(new Object());
            }
    
            Iterable<?> locks = striped.bulkGet(objects);
            assertTrue(Ordering.natural().onResultOf(Functions.forMap(indexByLock)).isOrdered(locks));
    
            // check idempotency
            Iterable<?> locks2 = striped.bulkGet(objects);
            assertEquals(Lists.newArrayList(locks), Lists.newArrayList(locks2));
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:19:59 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/collect/MapsCollectionTest.java

        private final SortedSet<String> delegate = Sets.newTreeSet(Ordering.natural());
    
        @Override
        protected SortedSet<String> delegate() {
          return delegate;
        }
      }
    
      private static class NonNavigableSortedMap extends ForwardingSortedMap<String, String> {
    
        private final SortedMap<String, String> delegate = new SafeTreeMap<>(Ordering.natural());
    
        @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 32.4K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/collect/Collections2Test.java

      }
    
      public void testOrderedPermutationSetRepeatedElements() {
        List<Integer> list = newArrayList(1, 1, 2, 2);
        Iterator<List<Integer>> permutations =
            Collections2.orderedPermutations(list, Ordering.natural()).iterator();
    
        assertNextPermutation(newArrayList(1, 1, 2, 2), permutations);
        assertNextPermutation(newArrayList(1, 2, 1, 2), permutations);
        assertNextPermutation(newArrayList(1, 2, 2, 1), permutations);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 20.1K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/StandardRowSortedTable.java

    import java.util.Set;
    import java.util.SortedMap;
    import java.util.SortedSet;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Implementation of {@code Table} whose iteration ordering across row keys is sorted by their
     * natural ordering or by a supplied comparator. Note that iterations across the columns keys for a
     * single row key may or may not be ordered, depending on the implementation. When rows and columns
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Jul 18 15:05:43 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/ContiguousSet.java

        return create(Range.closedOpen(lower, upper), DiscreteDomain.longs());
      }
    
      final DiscreteDomain<C> domain;
    
      ContiguousSet(DiscreteDomain<C> domain) {
        super(Ordering.natural());
        this.domain = domain;
      }
    
      @Override
      public ContiguousSet<C> headSet(C toElement) {
        return headSetImpl(checkNotNull(toElement), false);
      }
    
      /**
       * @since 12.0
       */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/ForwardingNavigableSet.java

     * invoke methods, they invoke methods on the {@code ForwardingNavigableSet}.
     *
     * <p>Each of the {@code standard} methods uses the set's comparator (or the natural ordering of the
     * elements, if there is no comparator) to test element equality. As a result, if the comparator is
     * not consistent with equals, some of the standard implementations may violate the {@code Set}
     * contract.
     *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 8.8K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/SortedSetMultimap.java

       */
      @Override
      Map<K, Collection<V>> asMap();
    
      /**
       * Returns the comparator that orders the multimap values, with {@code null} indicating that
       * natural ordering is used.
       */
      @Nullable Comparator<? super V> valueComparator();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 5.2K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/collect/Collections2.java

       *
       * <p>An empty iterable has only one permutation, which is an empty list.
       *
       * <p>This method is equivalent to {@code Collections2.orderedPermutations(list,
       * Ordering.natural())}.
       *
       * @param elements the original iterable whose elements have to be permuted.
       * @return an immutable {@link Collection} containing all the different permutations of the
       *     original iterable.
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 22.6K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/SetMultimap.java

     * signature doesn't say so explicitly, the map returned by {@link #asMap} has {@code Set} values.
     *
     * <p>If the values corresponding to a single key should be ordered according to a {@link
     * java.util.Comparator} (or the natural order), see the {@link SortedSetMultimap} subinterface.
     *
     * <p>Since the value collections are sets, the behavior of a {@code SetMultimap} is not specified
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 4.4K bytes
    - Click Count (0)
Back to Top