- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for SparseImmutableTable (0.12 sec)
-
guava-tests/test/com/google/common/collect/ImmutableTableTest.java
builder.put('a', 2, "baz"); builder.put('c', 3, "cat"); builder.put('d', 4, "dog"); Table<Character, Integer, String> table = builder.build(); assertThat(table).isInstanceOf(SparseImmutableTable.class); validateReserialization(table); } public void testSparseSerialization_rowOrder() { ImmutableTable.Builder<Character, Integer, String> builder = ImmutableTable.builder();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 18.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/RegularImmutableTable.java
return (cellList.size() > (((long) rowSpace.size() * columnSpace.size()) / 2)) ? new DenseImmutableTable<R, C, V>(cellList, rowSpace, columnSpace) : new SparseImmutableTable<R, C, V>(cellList, rowSpace, columnSpace); } /** @throws IllegalArgumentException if {@code existingValue} is not null. */ /*
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 7.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableTable.java
* * <p><b>Performance note:</b> the instance returned is a singleton. */ @SuppressWarnings("unchecked") public static <R, C, V> ImmutableTable<R, C, V> of() { return (ImmutableTable<R, C, V>) SparseImmutableTable.EMPTY; } /** Returns an immutable table containing a single cell. */ public static <R, C, V> ImmutableTable<R, C, V> of(R rowKey, C columnKey, V value) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 17.5K bytes - Viewed (0)