Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 300 for reordering (0.09 sec)

  1. guava-tests/test/com/google/common/graph/ElementOrderTest.java

    import static com.google.common.graph.ElementOrder.unordered;
    import static com.google.common.truth.Truth.assertThat;
    
    import com.google.common.collect.Ordering;
    import java.util.Comparator;
    import org.junit.Test;
    import org.junit.runner.RunWith;
    import org.junit.runners.JUnit4;
    
    /** Tests for ordering the elements of graphs. */
    @RunWith(JUnit4.class)
    public final class ElementOrderTest {
      // Node order tests
    
      @Test
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ComparatorsTest.java

            .addEqualityGroup(Ordering.natural())
            .testEquals();
      }
    
      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()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableTableTest.java

        table.put('b', 1, "bar");
        table.put('a', 2, "baz");
        validateTableCopies(table);
        // Even though rowKeySet, columnKeySet, and cellSet have the same
        // iteration ordering, row has an inconsistent ordering.
        assertThat(table.row('b').keySet()).containsExactly(1, 2).inOrder();
        assertThat(ImmutableTable.copyOf(table).row('b').keySet()).containsExactly(2, 1).inOrder();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/ListToArrayTester.java

    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class ListToArrayTester<E> extends AbstractListTester<E> {
      // CollectionToArrayTester tests everything except ordering.
    
      public void testToArray_noArg() {
        Object[] actual = getList().toArray();
        assertArrayEquals("toArray() order should match list", createOrderedArray(), actual);
      }
    
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/graph/ElementOrder.java

      /**
       * The type of ordering that this object specifies.
       *
       * <ul>
       *   <li>UNORDERED: no order is guaranteed.
       *   <li>STABLE: ordering is guaranteed to follow a pattern that won't change between releases.
       *       Some methods may have stronger guarantees.
       *   <li>INSERTION: insertion ordering is guaranteed.
       *   <li>SORTED: ordering according to a supplied comparator is guaranteed.
       * </ul>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/graph/ElementOrder.java

      /**
       * The type of ordering that this object specifies.
       *
       * <ul>
       *   <li>UNORDERED: no order is guaranteed.
       *   <li>STABLE: ordering is guaranteed to follow a pattern that won't change between releases.
       *       Some methods may have stronger guarantees.
       *   <li>INSERTION: insertion ordering is guaranteed.
       *   <li>SORTED: ordering according to a supplied comparator is guaranteed.
       * </ul>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/SortedIterablesTest.java

        assertTrue(SortedIterables.hasSameComparator(Ordering.natural(), Sets.newTreeSet()));
        // Before JDK6 (including under GWT), the TreeMap keySet is a plain Set.
        if (Maps.newTreeMap().keySet() instanceof SortedSet) {
          assertTrue(SortedIterables.hasSameComparator(Ordering.natural(), Maps.newTreeMap().keySet()));
        }
        assertTrue(
            SortedIterables.hasSameComparator(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/SortedIterablesTest.java

        assertTrue(SortedIterables.hasSameComparator(Ordering.natural(), Sets.newTreeSet()));
        // Before JDK6 (including under GWT), the TreeMap keySet is a plain Set.
        if (Maps.newTreeMap().keySet() instanceof SortedSet) {
          assertTrue(SortedIterables.hasSameComparator(Ordering.natural(), Maps.newTreeMap().keySet()));
        }
        assertTrue(
            SortedIterables.hasSameComparator(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java

        return copyOfInternal((Ordering<E>) Ordering.natural(), (Collection<E>) elements, false);
      }
    
      // Unsafe, see ImmutableSortedSetFauxverideShim.
      @SuppressWarnings("unchecked")
      public static <E> ImmutableSortedSet<E> copyOf(Iterable<? extends E> elements) {
        return copyOfInternal((Ordering<E>) Ordering.natural(), (Iterable<E>) elements, false);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 19 16:21:24 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/TreeMultimap.java

     * according to the key comparator ordering or the natural ordering of the keys. Similarly, {@code
     * get}, {@code removeAll}, and {@code replaceValues} return collections that iterate through the
     * values according to the value comparator ordering or the natural ordering of the values. The
     * collections generated by {@code entries}, {@code keys}, and {@code values} iterate across the
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Mar 09 00:21:17 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top