Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 111 - 120 of 174 for naturally (0.05 seconds)

  1. guava-tests/test/com/google/common/collect/ForwardingSortedMultisetTest.java

                      }
    
                      @Override
                      public List<String> order(List<String> insertionOrder) {
                        return Ordering.natural().sortedCopy(insertionOrder);
                      }
                    })
                .named("ForwardingSortedMultiset with standard impls")
                .withFeatures(
                    CollectionSize.ANY,
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  2. 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)
  3. guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java

            C filtered = filter(createUnfiltered(contents), EVEN);
    
            try {
              Integer first = filtered.first();
              assertFalse(filtered.isEmpty());
              assertEquals(Ordering.natural().min(filtered), first);
            } catch (NoSuchElementException e) {
              assertTrue(filtered.isEmpty());
            }
          }
        }
    
        public void testLast() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 13.1K bytes
    - Click Count (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

        sort(insertionOrder, entryComparator(keyComparator));
        return insertionOrder;
      }
    
      /**
       * Compares strings in natural order except that null comes immediately before a given value. This
       * works better than Ordering.natural().nullsFirst() because, if null comes before all other
       * values, it lies outside the submap/submultiset ranges we test, and the variety of tests that
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Oct 10 23:13:45 GMT 2025
    - 17.2K bytes
    - Click Count (0)
  5. docs/pt/docs/tutorial/extra-data-types.md

    {* ../../docs_src/extra_data_types/tutorial001_an_py310.py hl[1,3,12:16] *}
    
    Note que os parâmetros dentro da função tem seu tipo de dados natural, e você pode, por exemplo, realizar manipulações normais de data, como:
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Nov 12 16:23:57 GMT 2025
    - 3K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

        assertEquals(
            Lists.newArrayList(4, 3, 2, 1),
            fluent(4, 1, 3, 2).toSortedList(Ordering.<Integer>natural().reverse()));
      }
    
      public void testToSortedList_withDuplicates() {
        assertEquals(
            Lists.newArrayList(4, 3, 1, 1),
            fluent(1, 4, 1, 3).toSortedList(Ordering.<Integer>natural().reverse()));
      }
    
      public void testToSet() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 30.5K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/Maps.java

       *
       * <p><b>Warning:</b> {@code Range}s always represent a range of values using the values' natural
       * ordering. {@code NavigableMap} on the other hand can specify a custom ordering via a {@link
       * Comparator}, which can violate the natural ordering. Using this method (or in general using
       * {@code Range}) with unnaturally-ordered maps can lead to unexpected and undefined behavior.
       *
       * @since 20.0
       */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 157.6K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/Maps.java

       *
       * <p><b>Warning:</b> {@code Range}s always represent a range of values using the values' natural
       * ordering. {@code NavigableMap} on the other hand can specify a custom ordering via a {@link
       * Comparator}, which can violate the natural ordering. Using this method (or in general using
       * {@code Range}) with unnaturally-ordered maps can lead to unexpected and undefined behavior.
       *
       * @since 20.0
       */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Nov 17 22:50:48 GMT 2025
    - 163.5K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

     * @author Alexei Stolboushkin
     * @author Sverre Sundsdal
     */
    @GwtCompatible
    @NullMarked
    public class MinMaxPriorityQueueTest extends TestCase {
      private static final Ordering<Integer> SOME_COMPARATOR = Ordering.<Integer>natural().reverse();
    
      @J2ktIncompatible
      @GwtIncompatible // suite
      @AndroidIncompatible // test-suite builders
      public static Test suite() {
        TestSuite suite = new TestSuite();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 36.1K bytes
    - Click Count (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java

            builder.put(elements[i], i);
          }
          return builder.build().keySet().asList();
        }
    
        @Override
        public List<String> order(List<String> insertionOrder) {
          return Ordering.<String>natural().sortedCopy(insertionOrder);
        }
      }
    
      public static class ImmutableSortedMapValueListGenerator extends TestStringListGenerator {
        @Override
        protected List<String> create(String[] elements) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Aug 10 19:54:19 GMT 2025
    - 4.8K bytes
    - Click Count (0)
Back to Top