Home
last modified time | relevance | path

Searched refs:backingMap (Results 1 – 25 of 31) sorted by relevance

12

/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DAbstractMapBasedMultiset.java48 private transient Map<E, Count> backingMap; field in AbstractMapBasedMultiset
58 protected AbstractMapBasedMultiset(Map<E, Count> backingMap) { in AbstractMapBasedMultiset() argument
59 this.backingMap = checkNotNull(backingMap); in AbstractMapBasedMultiset()
64 void setBackingMap(Map<E, Count> backingMap) { in setBackingMap() argument
65 this.backingMap = backingMap; in setBackingMap()
85 backingMap.entrySet().iterator(); in entryIterator()
107 Count frequency = backingMap.get(getElement()); in entryIterator()
129 for (Count frequency : backingMap.values()) {
132 backingMap.clear();
138 return backingMap.size();
[all …]
DArrayListMultimap.java132 for (Collection<V> collection : backingMap().values()) { in trimToSize()
/external/guava/guava/src/com/google/common/collect/
DAbstractMapBasedMultiset.java51 private transient Map<E, Count> backingMap; field in AbstractMapBasedMultiset
61 protected AbstractMapBasedMultiset(Map<E, Count> backingMap) { in AbstractMapBasedMultiset() argument
62 this.backingMap = checkNotNull(backingMap); in AbstractMapBasedMultiset()
67 void setBackingMap(Map<E, Count> backingMap) { in setBackingMap() argument
68 this.backingMap = backingMap; in setBackingMap()
88 backingMap.entrySet().iterator(); in entryIterator()
110 Count frequency = backingMap.get(getElement()); in entryIterator()
132 for (Count frequency : backingMap.values()) {
135 backingMap.clear();
141 return backingMap.size();
[all …]
DStandardTable.java68 @GwtTransient final Map<R, Map<C, V>> backingMap; field in StandardTable
71 StandardTable(Map<R, Map<C, V>> backingMap, in StandardTable() argument
73 this.backingMap = backingMap; in StandardTable()
88 for (Map<C, V> map : backingMap.values()) { in containsColumn()
97 return rowKey != null && safeContainsKey(backingMap, rowKey); in containsRow()
111 return backingMap.isEmpty(); in isEmpty()
116 for (Map<C, V> map : backingMap.values()) { in size()
125 backingMap.clear(); in clear()
129 Map<C, V> map = backingMap.get(rowKey); in getOrCreate()
132 backingMap.put(rowKey, map); in getOrCreate()
[all …]
DHashBasedTable.java90 Map<R, Map<C, V>> backingMap = in create() local
93 backingMap, new Factory<C, V>(expectedCellsPerRow)); in create()
111 HashBasedTable(Map<R, Map<C, V>> backingMap, Factory<C, V> factory) { in HashBasedTable() argument
112 super(backingMap, factory); in HashBasedTable()
DTreeMultimap.java173 NavigableMap<K, Collection<V>> backingMap() { in backingMap() method in TreeMultimap
174 return (NavigableMap<K, Collection<V>>) super.backingMap(); in backingMap()
216 return new NavigableKeySet(backingMap()); in createKeySet()
237 return new NavigableAsMap(backingMap()); in createAsMap()
DStandardRowSortedTable.java57 StandardRowSortedTable(SortedMap<R, Map<C, V>> backingMap, in StandardRowSortedTable() argument
59 super(backingMap, factory); in StandardRowSortedTable()
63 return (SortedMap<R, Map<C, V>>) backingMap; in sortedBackingMap()
DAbstractSortedKeySortedSetMultimap.java47 SortedMap<K, Collection<V>> backingMap() { in backingMap() method in AbstractSortedKeySortedSetMultimap
48 return (SortedMap<K, Collection<V>>) super.backingMap(); in backingMap()
DMutableClassToInstanceMap.java55 Map<Class<? extends B>, B> backingMap) { in create() argument
56 return new MutableClassToInstanceMap<B>(backingMap); in create()
DTreeBasedTable.java256 || (wholeRow.isEmpty() && backingMap.containsKey(rowKey))) { in wholeRow()
257 wholeRow = (SortedMap<C, V>) backingMap.get(rowKey); in wholeRow()
285 backingMap.remove(rowKey); in maintainEmptyInvariant()
320 Iterators.mergeSorted(Iterables.transform(backingMap.values(), in createColumnKeyIterator()
DArrayListMultimap.java137 for (Collection<V> collection : backingMap().values()) { in trimToSize()
DTables.java298 Map<R, Map<C, V>> backingMap, Supplier<? extends Map<C, V>> factory) { in newCustomTable() argument
299 checkArgument(backingMap.isEmpty()); in newCustomTable()
302 return new StandardTable<R, C, V>(backingMap, factory); in newCustomTable()
/external/guava/guava-tests/test/com/google/common/collect/
DConcurrentHashMultisetTest.java104 ConcurrentMap<String, AtomicInteger> backingMap;
109 backingMap = EasyMock.createMock(ConcurrentMap.class);
110 expect(backingMap.isEmpty()).andReturn(true);
113 multiset = new ConcurrentHashMultiset<String>(backingMap);
120 expect(backingMap.get(KEY)).andReturn(new AtomicInteger(COUNT));
128 expect(backingMap.get(KEY)).andReturn(null);
138 expect(backingMap.get(KEY)).andReturn(new AtomicInteger(INITIAL_COUNT));
147 expect(backingMap.get(KEY)).andReturn(null);
148 expect(backingMap.putIfAbsent(eq(KEY), isA(AtomicInteger.class))).andReturn(null);
160 expect(backingMap.get(KEY)).andReturn(initial);
[all …]
DForwardingNavigableMapTest.java49 private final NavigableMap<K, V> backingMap; field in ForwardingNavigableMapTest.StandardImplForwardingNavigableMap
51 StandardImplForwardingNavigableMap(NavigableMap<K, V> backingMap) { in StandardImplForwardingNavigableMap() argument
52 this.backingMap = backingMap; in StandardImplForwardingNavigableMap()
56 return backingMap; in delegate()
103 return backingMap.entrySet().iterator(); in entrySet()
218 private final NavigableMap<K, V> backingMap;
220 StandardLastEntryForwardingNavigableMap(NavigableMap<K, V> backingMap) {
221 this.backingMap = backingMap;
225 return backingMap;
DSimpleAbstractMultisetTest.java93 final Map<E, Integer> backingMap = Maps.newHashMap(); field in SimpleAbstractMultisetTest.NoRemoveMultiset
97 Integer frequency = backingMap.get(element); in add()
105 backingMap.put(element, frequency + occurrences); in add()
111 final Iterator<Map.Entry<E, Integer>> backingEntries = backingMap.entrySet().iterator(); in entryIterator()
129 Integer frequency = backingMap.get(getElement()); in entryIterator()
139 return backingMap.size();
DForwardingSortedMapTest.java46 private final SortedMap<K, V> backingMap; field in ForwardingSortedMapTest.StandardImplForwardingSortedMap
48 StandardImplForwardingSortedMap(SortedMap<K, V> backingMap) { in StandardImplForwardingSortedMap() argument
49 this.backingMap = backingMap; in StandardImplForwardingSortedMap()
53 return backingMap; in delegate()
96 return backingMap.entrySet().iterator(); in entrySet()
DNewCustomTableTest.java44 Map<String, Map<Integer, Character>> backingMap in create() local
47 = Tables.newCustomTable(backingMap, factory); in create()
DForwardingMapTest.java50 private final Map<K, V> backingMap; field in ForwardingMapTest.StandardImplForwardingMap
52 StandardImplForwardingMap(Map<K, V> backingMap) { in StandardImplForwardingMap() argument
53 this.backingMap = backingMap; in StandardImplForwardingMap()
57 return backingMap; in delegate()
/external/guava/guava-gwt/src-super/java/util/super/java/util/concurrent/
DConcurrentHashMap.java38 private final Map<K, V> backingMap; field in ConcurrentHashMap
41 this.backingMap = new HashMap<K, V>(); in ConcurrentHashMap()
45 this.backingMap = new HashMap<K, V>(initialCapacity); in ConcurrentHashMap()
49 this.backingMap = new HashMap<K, V>(initialCapacity, loadFactor); in ConcurrentHashMap()
53 this.backingMap = new HashMap<K, V>(t); in ConcurrentHashMap()
98 return backingMap.containsKey(key); in containsKey()
105 return backingMap.get(key); in get()
112 return backingMap.put(key, value); in put()
119 return backingMap.containsValue(value); in containsValue()
126 return backingMap.remove(key); in remove()
[all …]
/external/guice/core/src/com/google/inject/internal/
DWeakKeySet.java43 private Map<Key<?>, Multiset<Object>> backingMap; field in WeakKeySet
75 Multiset<Object> set = backingMap.get(keyAndSource.key); in cleanUpForCollectedState()
79 backingMap.remove(keyAndSource.key); in cleanUpForCollectedState()
91 if (backingMap == null) { in add()
92 backingMap = Maps.newHashMap(); in add()
99 Multiset<Object> sources = backingMap.get(key); in add()
102 backingMap.put(key, sources); in add()
119 return backingMap != null && backingMap.containsKey(key); in contains()
124 Multiset<Object> sources = (backingMap == null) ? null : backingMap.get(key); in getSources()
/external/autotest/frontend/client/src/autotest/common/table/
DJSONObjectSet.java16 protected Map<String, T> backingMap = new HashMap<String, T>(); field in JSONObjectSet
33 return backingMap.put(getKey(arg0), arg0) == null; in add()
38 return backingMap.values().iterator(); in iterator()
43 return backingMap.remove(getKey(arg0)) != null; in remove()
48 return backingMap.containsKey(getKey(o)); in contains()
53 return backingMap.size(); in size()
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DSimpleAbstractMultisetTest.java67 final Map<E, Integer> backingMap = Maps.newHashMap(); field in SimpleAbstractMultisetTest.NoRemoveMultiset
71 Integer frequency = backingMap.get(element); in add()
79 backingMap.put(element, frequency + occurrences); in add()
85 final Iterator<Map.Entry<E, Integer>> backingEntries = backingMap.entrySet().iterator(); in entryIterator()
103 Integer frequency = backingMap.get(getElement()); in entryIterator()
113 return backingMap.size();
DLinkedHashMultimapTest.java47 (LinkedHashMultimap.ValueSet) multimap.backingMap().get("a"); in testValueSetHashTableExpansion()
/external/guava/guava/src/com/google/common/reflect/
DMutableTypeToInstanceMap.java46 private final Map<TypeToken<? extends B>, B> backingMap = Maps.newHashMap(); field in MutableTypeToInstanceMap
87 return backingMap; in delegate()
93 return (T) backingMap.put(type, value); in trustedPut()
99 return (T) backingMap.get(type); in trustedGet()
/external/guava/guava-gwt/src/com/google/common/collect/
DTable_CustomFieldSerializerBase.java49 writer.writeObject(table.backingMap); in serialize()

12