Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for lexicographicalComparatorJavaImpl (0.8 sec)

  1. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

        if (unsafeComparatorAvailable()) {
          assertThat(defaultComparator).isInstanceOf(UnsafeComparator.class);
        } else {
          assertThat(defaultComparator).isEqualTo(UnsignedBytes.lexicographicalComparatorJavaImpl());
        }
      }
    
      public void testLexicographicalComparator() {
        List<byte[]> ordered =
            Arrays.asList(
                new byte[] {},
                new byte[] {LEAST},
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/primitives/UnsignedBytesBenchmark.java

        ba3 = Arrays.copyOf(ba1, ba1.length);
        ba4 = Arrays.copyOf(ba1, ba1.length);
        ba3[ba1.length - 1] = (byte) 43;
        ba4[ba1.length - 1] = (byte) 42;
    
        javaImpl = UnsignedBytes.lexicographicalComparatorJavaImpl();
        unsafeImpl = UnsignedBytes.LexicographicalComparatorHolder.UnsafeComparator.INSTANCE;
      }
    
      @Benchmark
      void longEqualJava(int reps) {
        for (int i = 0; i < reps; ++i) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top