- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 46 for newLinkedHashMap (0.23 sec)
-
android/guava/src/com/google/common/collect/SparseImmutableTable.java
ImmutableSet<C> columnSpace) { Map<R, Integer> rowIndex = Maps.indexMap(rowSpace); Map<R, Map<C, V>> rows = Maps.newLinkedHashMap(); for (R row : rowSpace) { rows.put(row, new LinkedHashMap<C, V>()); } Map<C, Map<R, V>> columns = Maps.newLinkedHashMap(); for (C col : columnSpace) { columns.put(col, new LinkedHashMap<R, V>()); } int[] cellRowIndices = new int[cellList.size()];
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Nov 30 21:54:06 GMT 2023 - 5.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/BiMapGenerators.java
public static class ImmutableBiMapCopyOfGenerator extends TestStringBiMapGenerator { @Override protected BiMap<String, String> create(Entry<String, String>[] entries) { Map<String, String> builder = Maps.newLinkedHashMap(); for (Entry<String, String> entry : entries) { builder.put(entry.getKey(), entry.getValue()); } return ImmutableBiMap.copyOf(builder); } }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 2.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/NewCustomTableTest.java
@Override public TreeMap<Integer, Character> get() { return Maps.newTreeMap(); } }; Map<String, Map<Integer, Character>> backingMap = Maps.newLinkedHashMap(); Table<String, Integer, Character> table = Tables.newCustomTable(backingMap, factory); populate(table, data); return table; } public void testRowKeySetOrdering() {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Mar 04 16:54:11 GMT 2024 - 2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/BiMapGenerators.java
public static class ImmutableBiMapCopyOfGenerator extends TestStringBiMapGenerator { @Override protected BiMap<String, String> create(Entry<String, String>[] entries) { Map<String, String> builder = Maps.newLinkedHashMap(); for (Entry<String, String> entry : entries) { builder.put(entry.getKey(), entry.getValue()); } return ImmutableBiMap.copyOf(builder); } }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 2.2K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableMap.java
} @SuppressWarnings("unchecked") ForwardingImmutableMap(boolean throwIfDuplicateKeys, Entry<? extends K, ? extends V>... entries) { Map<K, V> delegate = Maps.newLinkedHashMap(); for (Entry<? extends K, ? extends V> entry : entries) { K key = checkNotNull(entry.getKey()); V previous = delegate.put(key, checkNotNull(entry.getValue()));
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Jan 24 16:03:45 GMT 2024 - 3.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/NewCustomTableTest.java
@Override public TreeMap<Integer, Character> get() { return Maps.newTreeMap(); } }; Map<String, Map<Integer, Character>> backingMap = Maps.newLinkedHashMap(); Table<String, Integer, Character> table = Tables.newCustomTable(backingMap, factory); populate(table, data); return table; } public void testRowKeySetOrdering() {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Mar 04 16:54:11 GMT 2024 - 2K bytes - Viewed (0) -
guava/src/com/google/common/cache/AbstractLoadingCache.java
throw new UncheckedExecutionException(e.getCause()); } } @Override public ImmutableMap<K, V> getAll(Iterable<? extends K> keys) throws ExecutionException { Map<K, V> result = Maps.newLinkedHashMap(); for (K key : keys) { if (!result.containsKey(key)) { result.put(key, get(key)); } } return ImmutableMap.copyOf(result); } @Override
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Sat Aug 06 17:12:03 GMT 2022 - 2.7K bytes - Viewed (0) -
android/guava/src/com/google/common/cache/AbstractLoadingCache.java
throw new UncheckedExecutionException(e.getCause()); } } @Override public ImmutableMap<K, V> getAll(Iterable<? extends K> keys) throws ExecutionException { Map<K, V> result = Maps.newLinkedHashMap(); for (K key : keys) { if (!result.containsKey(key)) { result.put(key, get(key)); } } return ImmutableMap.copyOf(result); } @Override
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Sat Aug 06 17:12:03 GMT 2022 - 2.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/JoinerTest.java
assertEquals("", j.join(ImmutableMap.of())); assertEquals(":", j.join(ImmutableMap.of("", ""))); Map<@Nullable String, @Nullable String> mapWithNulls = Maps.newLinkedHashMap(); mapWithNulls.put("a", null); mapWithNulls.put(null, "b"); try { j.join(mapWithNulls); fail(); } catch (NullPointerException expected) { }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 12.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/JoinerTest.java
assertEquals("", j.join(ImmutableMap.of())); assertEquals(":", j.join(ImmutableMap.of("", ""))); Map<@Nullable String, @Nullable String> mapWithNulls = Maps.newLinkedHashMap(); mapWithNulls.put("a", null); mapWithNulls.put(null, "b"); try { j.join(mapWithNulls); fail(); } catch (NullPointerException expected) { }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Feb 09 15:49:48 GMT 2024 - 12.6K bytes - Viewed (0)