Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for isInOrder (0.58 sec)

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

      }
    
      public void testIsInOrder() {
        assertFalse(isInOrder(asList(5, 3, 0, 9), Ordering.natural()));
        assertFalse(isInOrder(asList(0, 5, 3, 9), Ordering.natural()));
        assertTrue(isInOrder(asList(0, 3, 5, 9), Ordering.natural()));
        assertTrue(isInOrder(asList(0, 0, 3, 3), Ordering.natural()));
        assertTrue(isInOrder(asList(0, 3), Ordering.natural()));
        assertTrue(isInOrder(singleton(1), Ordering.natural()));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Apr 12 15:07:59 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Comparators.java

       * equal to the element that preceded it, according to the specified comparator. Note that this is
       * always true when the iterable has fewer than two elements.
       */
      public static <T extends @Nullable Object> boolean isInOrder(
          Iterable<? extends T> iterable, Comparator<T> comparator) {
        checkNotNull(comparator);
        Iterator<? extends T> it = iterable.iterator();
        if (it.hasNext()) {
          T prev = it.next();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.collect.Comparators.isInOrder;
    import static com.google.common.collect.ImmutableSortedSet.toImmutableSortedSet;
    import static com.google.common.collect.Iterables.elementsEqual;
    import static com.google.common.collect.ReflectionFreeAssertThrows.assertThrows;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 46.7K bytes
    - Viewed (0)
Back to top