Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for lexicographical (0.1 sec)

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

        ImmutableList<String> b = ImmutableList.of("b");
    
        testComparator(lexy, empty, a, aa, ab, b);
    
        new EqualsTester()
            .addEqualityGroup(lexy, Comparators.lexicographical(comparator))
            .addEqualityGroup(Comparators.lexicographical(String.CASE_INSENSITIVE_ORDER))
            .addEqualityGroup(Ordering.natural())
            .testEquals();
      }
    
      public void testIsInOrder() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Collections2.java

       *
       * <p><i>Notes:</i> This is an implementation of the algorithm for Lexicographical Permutations
       * Generation, described in Knuth's "The Art of Computer Programming", Volume 4, Chapter 7,
       * Section 7.2.1.2. The iteration order follows the lexicographical order. This means that the
       * first permutation will be in ascending order, and the last will be in descending order.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Collections2.java

       *
       * <p><i>Notes:</i> This is an implementation of the algorithm for Lexicographical Permutations
       * Generation, described in Knuth's "The Art of Computer Programming", Volume 4, Chapter 7,
       * Section 7.2.1.2. The iteration order follows the lexicographical order. This means that the
       * first permutation will be in ascending order, and the last will be in descending order.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Ordering.java

       * but not the other, the shorter iterable is considered to be less than the longer one. For
       * example, a lexicographical natural ordering over integers considers {@code [] < [1] < [1, 1] <
       * [1, 2] < [2]}.
       *
       * <p>Note that {@code ordering.lexicographical().reverse()} is not equivalent to {@code
       * ordering.reverse().lexicographical()} (consider how each would order {@code [1]} and {@code [1,
       * 1]}).
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        ImmutableList<String> b = ImmutableList.of("b");
    
        testComparator(lexy, empty, a, aa, ab, b);
    
        new EqualsTester()
            .addEqualityGroup(lexy, ordering.lexicographical())
            .addEqualityGroup(numberOrdering.lexicographical())
            .addEqualityGroup(Ordering.natural())
            .testEquals();
      }
    
      public void testNullsFirst() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/OrderingTest.java

        ImmutableList<String> b = ImmutableList.of("b");
    
        testComparator(lexy, empty, a, aa, ab, b);
    
        new EqualsTester()
            .addEqualityGroup(lexy, ordering.lexicographical())
            .addEqualityGroup(numberOrdering.lexicographical())
            .addEqualityGroup(Ordering.natural())
            .testEquals();
      }
    
      public void testNullsFirst() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Ordering.java

       * but not the other, the shorter iterable is considered to be less than the longer one. For
       * example, a lexicographical natural ordering over integers considers {@code [] < [1] < [1, 1] <
       * [1, 2] < [2]}.
       *
       * <p>Note that {@code ordering.lexicographical().reverse()} is not equivalent to {@code
       * ordering.reverse().lexicographical()} (consider how each would order {@code [1]} and {@code [1,
       * 1]}).
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Lists.java

       *   <li>{@code ImmutableList.of(2, "A")}
       *   <li>{@code ImmutableList.of(2, "B")}
       *   <li>{@code ImmutableList.of(2, "C")}
       * </ul>
       *
       * <p>The result is guaranteed to be in the "traditional", lexicographical order for Cartesian
       * products that you would get from nesting for loops:
       *
       * <pre>{@code
       * for (B b0 : lists.get(0)) {
       *   for (B b1 : lists.get(1)) {
       *     ...
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/Equivalence.java

       * iterables are equivalent to one another.
       *
       * <p>Note that this method performs a similar function for equivalences as {@link
       * com.google.common.collect.Ordering#lexicographical} does for orderings.
       *
       * <p>The returned object is serializable if this object is serializable.
       *
       * @since 10.0
       */
      @GwtCompatible(serializable = true)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu May 16 14:34:47 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

        assertEquals(HashMultiset.create(asList("a")), multiset);
      }
    
      public void testCreation_arrayOfArray() {
        Comparator<String[]> comparator =
            Ordering.natural().lexicographical().onResultOf(Arrays::asList);
        String[] array = new String[] {"a"};
        Multiset<String[]> multiset = ImmutableSortedMultiset.orderedBy(comparator).add(array).build();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.7K bytes
    - Viewed (0)
Back to top