Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 123 for dort (0.12 sec)

  1. android/guava/src/com/google/common/collect/Iterables.java

       * will not be de-duplicated.
       *
       * <p>Callers must ensure that the source {@code iterables} are in non-descending order as this
       * method does not sort its input.
       *
       * <p>For any equivalent elements across all {@code iterables}, it is undefined which element is
       * returned first.
       *
       * @since 11.0
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ComparisonChainTest.java

                    .compare("a", "b")
                    .compare(DONT_COMPARE_ME, DONT_COMPARE_ME)
                    .result())
            .isLessThan(0);
      }
    
      public void testShortCircuitGreater() {
        assertThat(
                ComparisonChain.start()
                    .compare("b", "a")
                    .compare(DONT_COMPARE_ME, DONT_COMPARE_ME)
                    .result())
            .isGreaterThan(0);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/net/HostAndPortTest.java

        // No port, bad default.
        checkFromStringCase("google.com", -1, "google.com", -1, false);
        checkFromStringCase("192.0.2.1", 65536, "192.0.2.1", -1, false);
        checkFromStringCase("[2001::1]", -1, "2001::1", -1, false);
        checkFromStringCase("2001::3", 65536, "2001::3", -1, false);
      }
    
      public void testFromStringUnusedDefaultPort() {
        // Default port, but unused.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 11:19:47 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  4. guava-testlib/test/com/google/common/collect/testing/SafeTreeMapTest.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect.testing;
    
    import static java.util.Collections.sort;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.collect.ImmutableSortedMap;
    import com.google.common.collect.Lists;
    import com.google.common.collect.Ordering;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Mar 18 18:06:40 GMT 2022
    - 4.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/TopKSelector.java

          }
          iterations++;
          if (iterations >= maxIterations) {
            @SuppressWarnings("nullness") // safe because we pass sort() a range that contains real Ts
            T[] castBuffer = (T[]) buffer;
            // We've already taken O(k log k), let's make sure we don't take longer than O(k log k).
            Arrays.sort(castBuffer, left, right + 1, comparator);
            break;
          }
        }
        bufferSize = k;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

      static void testSort(long[] input, long[] expected) {
        input = Arrays.copyOf(input, input.length);
        UnsignedLongs.sort(input);
        assertThat(input).isEqualTo(expected);
      }
    
      static void testSort(long[] input, int from, int to, long[] expected) {
        input = Arrays.copyOf(input, input.length);
        UnsignedLongs.sort(input, from, to);
        assertThat(input).isEqualTo(expected);
      }
    
      public void testSortIndexed() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:36:17 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

      static void testSort(int[] input, int[] expected) {
        input = Arrays.copyOf(input, input.length);
        UnsignedInts.sort(input);
        assertThat(input).isEqualTo(expected);
      }
    
      static void testSort(int[] input, int from, int to, int[] expected) {
        input = Arrays.copyOf(input, input.length);
        UnsignedInts.sort(input, from, to);
        assertThat(input).isEqualTo(expected);
      }
    
      public void testSortIndexed() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 12.7K bytes
    - Viewed (1)
  8. android/guava-tests/test/com/google/common/collect/TopKSelectorTest.java

        assertThat(compareCalls[0]).isAtMost(10L * n * IntMath.log2(k, RoundingMode.CEILING));
      }
    
      public void testExceedMaxIteration() {
        /*
         * Bug #5692 occurred when TopKSelector called Arrays.sort incorrectly.
         */
        TopKSelector<Integer> top = TopKSelector.least(7);
        top.offerAll(Ints.asList(5, 7, 6, 2, 4, 3, 1, 0, 0, 0, 0, 0, 0, 0));
        assertThat(top.topK()).isEqualTo(Ints.asList(0, 0, 0, 0, 0, 0, 0));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/SortedLists.java

       * Searches the specified list for the specified object using the binary search algorithm. The
       * list must be sorted into ascending order according to the specified comparator (as by the
       * {@link Collections#sort(List, Comparator) Collections.sort(List, Comparator)} method), prior to
       * making this call. If it is not sorted, the results are undefined.
       *
       * <p>If there are elements in the list which compare as equal to the key, the choice of {@link
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/SortedMapTestSuiteBuilder.java

       *
       * <p>Because the map may be ascending or descending, this test must derive the relative order of
       * these extreme values rather than relying on their regular sort ordering.
       */
      final TestSuite createSubmapSuite(
          FeatureSpecificTestSuiteBuilder<
                  ?, ? extends OneSizeTestContainerGenerator<Map<K, V>, Entry<K, V>>>
              parentBuilder,
          Bound from,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 5K bytes
    - Viewed (0)
Back to top