Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 29 for lexicographically (0.09 seconds)

  1. guava/src/com/google/common/primitives/Doubles.java

        }
        return builder.toString();
      }
    
      /**
       * Returns a comparator that compares two {@code double} arrays <a
       * href="http://en.wikipedia.org/wiki/Lexicographical_order">lexicographically</a>. That is, it
       * compares, using {@link #compare(double, double)}), the first pair of values that follow any
       * common prefix, or when one array is a prefix of the other, treats the shorter array as the
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Oct 22 18:14:49 GMT 2025
    - 27.6K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/primitives/Ints.java

        }
        return builder.toString();
      }
    
      /**
       * Returns a comparator that compares two {@code int} arrays <a
       * href="http://en.wikipedia.org/wiki/Lexicographical_order">lexicographically</a>. That is, it
       * compares, using {@link #compare(int, int)}), the first pair of values that follow any common
       * prefix, or when one array is a prefix of the other, treats the shorter array as the lesser. For
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Oct 22 18:14:49 GMT 2025
    - 31.3K bytes
    - Click Count (0)
  3. src/bytes/bytes.go

    func Equal(a, b []byte) bool {
    	// Neither cmd/compile nor gccgo allocates for these string conversions.
    	return string(a) == string(b)
    }
    
    // Compare returns an integer comparing two byte slices lexicographically.
    // The result will be 0 if a == b, -1 if a < b, and +1 if a > b.
    // A nil argument is equivalent to an empty slice.
    func Compare(a, b []byte) int {
    	return bytealg.Compare(a, b)
    }
    
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Sep 16 16:42:15 GMT 2025
    - 35.5K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/Sets.java

                   *
                   * The next combination is
                   *
                   * {0, 1, ..., bitToFlip - firstSetBit - 2, bitToFlip, ...}
                   *
                   * This is lexicographically next if you look at the combinations in descending order
                   * e.g. {2, 1, 0}, {3, 1, 0}, {3, 2, 0}, {3, 2, 1}, {4, 1, 0}...
                   */
    
                  bits.set(0, bitToFlip - firstSetBit - 1);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 81.6K bytes
    - Click Count (0)
  5. 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() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Apr 12 15:07:59 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  6. 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.
       *
    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)
  7. guava/src/com/google/common/collect/Comparators.java

       * For example, a lexicographical natural ordering over integers considers {@code [] < [1] < [1,
       * 1] < [1, 2] < [2]}.
       *
       * <p>Note that {@code Collections.reverseOrder(lexicographical(comparator))} is not equivalent to
       * {@code lexicographical(Collections.reverseOrder(comparator))} (consider how each would order
       * {@code [1]} and {@code [1, 1]}).
       */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  8. 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() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Oct 10 23:13:45 GMT 2025
    - 42.8K bytes
    - Click Count (0)
  9. 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() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Oct 10 23:13:45 GMT 2025
    - 42.8K bytes
    - Click Count (0)
  10. 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]}).
       *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 39.5K bytes
    - Click Count (0)
Back to Top