Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for greatestOf (0.07 sec)

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

        /*
         * If greatestOf() promised to be implemented as reverse().leastOf(), this
         * test would be enough. It doesn't... but we'll cheat and act like it does
         * anyway. There's a comment there to remind us to fix this if we change it.
         */
        List<Integer> list = asList(3, 1, 3, 2, 4, 2, 4, 3);
        assertEquals(asList(4, 4, 3, 3), numberOrdering.greatestOf(list, 4));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/OrderingTest.java

        /*
         * If greatestOf() promised to be implemented as reverse().leastOf(), this
         * test would be enough. It doesn't... but we'll cheat and act like it does
         * anyway. There's a comment there to remind us to fix this if we change it.
         */
        List<Integer> list = asList(3, 1, 3, 2, 4, 2, 4, 3);
        assertEquals(asList(4, 4, 3, 3), numberOrdering.greatestOf(list, 4));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Ordering.java

       * thisComparator))} instead.
       *
       * @return an immutable {@code RandomAccess} list of the {@code k} greatest elements in
       *     <i>descending order</i>
       * @throws IllegalArgumentException if {@code k} is negative
       * @since 8.0
       */
      public <E extends T> List<E> greatestOf(Iterable<E> iterable, int k) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Ordering.java

       * thisComparator))} instead.
       *
       * @return an immutable {@code RandomAccess} list of the {@code k} greatest elements in
       *     <i>descending order</i>
       * @throws IllegalArgumentException if {@code k} is negative
       * @since 8.0
       */
      public <E extends T> List<E> greatestOf(Iterable<E> iterable, int k) {
    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/primitives/UnsignedIntsTest.java

                new int[] {LEAST, (int) 1L},
                new int[] {(int) 1L},
                new int[] {(int) 1L, LEAST},
                new int[] {GREATEST, (GREATEST - (int) 1L)},
                new int[] {GREATEST, GREATEST},
                new int[] {GREATEST, GREATEST, GREATEST});
    
        Comparator<int[]> comparator = UnsignedInts.lexicographicalComparator();
        Helpers.testComparator(comparator, ordered);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

                new byte[] {LEAST, (byte) 1},
                new byte[] {(byte) 1},
                new byte[] {(byte) 1, LEAST},
                new byte[] {GREATEST, GREATEST - (byte) 1},
                new byte[] {GREATEST, GREATEST},
                new byte[] {GREATEST, GREATEST, GREATEST});
    
        // The Unsafe implementation if it's available. Otherwise, the Java implementation.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/IntsTest.java

                new int[] {LEAST, (int) 1},
                new int[] {(int) 1},
                new int[] {(int) 1, LEAST},
                new int[] {GREATEST, GREATEST - (int) 1},
                new int[] {GREATEST, GREATEST},
                new int[] {GREATEST, GREATEST, GREATEST});
    
        Comparator<int[]> comparator = Ints.lexicographicalComparator();
        Helpers.testComparator(comparator, ordered);
      }
    
      @J2ktIncompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/CharsTest.java

                new char[] {LEAST, (char) 1},
                new char[] {(char) 1},
                new char[] {(char) 1, LEAST},
                new char[] {GREATEST, GREATEST - (char) 1},
                new char[] {GREATEST, GREATEST},
                new char[] {GREATEST, GREATEST, GREATEST});
    
        Comparator<char[]> comparator = Chars.lexicographicalComparator();
        Helpers.testComparator(comparator, ordered);
      }
    
      @J2ktIncompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/MinMaxPriorityQueue.java

     * #removeLast} are also provided, to act on the <i>greatest</i> element in the queue instead.
     *
     * <p>A min-max priority queue can be configured with a maximum size. If so, each time the size of
     * the queue exceeds that value, the queue automatically removes its greatest element according to
     * its comparator (which might be the element that was just added). This is different from
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

                new double[] {LEAST, (double) 1},
                new double[] {(double) 1},
                new double[] {(double) 1, LEAST},
                new double[] {GREATEST, Double.MAX_VALUE},
                new double[] {GREATEST, GREATEST},
                new double[] {GREATEST, GREATEST, GREATEST});
    
        Comparator<double[]> comparator = Doubles.lexicographicalComparator();
        Helpers.testComparator(comparator, ordered);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 32.2K bytes
    - Viewed (0)
Back to top