Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for orderRowsBy (0.15 sec)

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

        table.put('a', 2, "baz");
        ImmutableTable.Builder<Character, Integer, String> builder = ImmutableTable.builder();
        Table<Character, Integer, String> copy =
            builder
                .orderRowsBy(Ordering.natural())
                .orderColumnsBy(Ordering.natural())
                .putAll(table)
                .build();
        assertThat(copy.rowKeySet()).containsExactly('a', 'b').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)
  2. android/guava/src/com/google/common/collect/ImmutableTable.java

       * copied table may have different iteration orders. For more control over the ordering, create a
       * {@link Builder} and call {@link Builder#orderRowsBy}, {@link Builder#orderColumnsBy}, and
       * {@link Builder#putAll}
       *
       * <p>Despite the method name, this method attempts to avoid actually copying the data when it is
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
Back to top