Home
last modified time | relevance | path

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

/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DAbstractMapBasedMultiset.java49 private transient Map<E, Count> backingMap; field in AbstractMapBasedMultiset
59 protected AbstractMapBasedMultiset(Map<E, Count> backingMap) { in AbstractMapBasedMultiset() argument
60 this.backingMap = checkNotNull(backingMap); in AbstractMapBasedMultiset()
64 Map<E, Count> backingMap() { in backingMap() method in AbstractMapBasedMultiset
65 return backingMap; in backingMap()
69 void setBackingMap(Map<E, Count> backingMap) { in setBackingMap() argument
70 this.backingMap = backingMap; in setBackingMap()
90 backingMap.entrySet().iterator(); in entryIterator()
112 Count frequency = backingMap.get(getElement()); in entryIterator()
135 for (Count frequency : backingMap.values()) {
[all …]
DArrayListMultimap.java128 for (Collection<V> collection : backingMap().values()) { in trimToSize()
/external/guava/guava/src/com/google/common/collect/
DAbstractMapBasedMultiset.java52 private transient Map<E, Count> backingMap; field in AbstractMapBasedMultiset
62 protected AbstractMapBasedMultiset(Map<E, Count> backingMap) { in AbstractMapBasedMultiset() argument
63 this.backingMap = checkNotNull(backingMap); in AbstractMapBasedMultiset()
67 Map<E, Count> backingMap() { in backingMap() method in AbstractMapBasedMultiset
68 return backingMap; in backingMap()
72 void setBackingMap(Map<E, Count> backingMap) { in setBackingMap() argument
73 this.backingMap = backingMap; in setBackingMap()
93 backingMap.entrySet().iterator(); in entryIterator()
115 Count frequency = backingMap.get(getElement()); in entryIterator()
138 for (Count frequency : backingMap.values()) {
[all …]
DStandardTable.java65 @GwtTransient final Map<R, Map<C, V>> backingMap; field in StandardTable
68 StandardTable(Map<R, Map<C, V>> backingMap, in StandardTable() argument
70 this.backingMap = backingMap; in StandardTable()
81 Map<C, V> map = safeGet(backingMap, rowKey); in contains()
89 for (Map<C, V> map : backingMap.values()) { in containsColumn()
98 return rowKey != null && safeContainsKey(backingMap, rowKey); in containsRow()
105 for (Map<C, V> map : backingMap.values()) { in containsValue()
117 Map<C, V> map = safeGet(backingMap, rowKey); in get()
122 return backingMap.isEmpty(); in isEmpty()
127 for (Map<C, V> map : backingMap.values()) { in size()
[all …]
DHashBasedTable.java88 Map<R, Map<C, V>> backingMap = in create() local
91 backingMap, new Factory<C, V>(expectedCellsPerRow)); in create()
109 HashBasedTable(Map<R, Map<C, V>> backingMap, Factory<C, V> factory) { in HashBasedTable() argument
110 super(backingMap, factory); in HashBasedTable()
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()
DMutableClassToInstanceMap.java51 Map<Class<? extends B>, B> backingMap) { in create() argument
52 return new MutableClassToInstanceMap<B>(backingMap); in create()
DTreeBasedTable.java248 || (wholeRow.isEmpty() && backingMap.containsKey(rowKey))) { in wholeRow()
249 wholeRow = (SortedMap<C, V>) backingMap.get(rowKey); in wholeRow()
277 backingMap.remove(rowKey); in maintainEmptyInvariant()
344 Iterators.mergeSorted(Iterables.transform(backingMap.values(), in createColumnKeyIterator()
DArrayListMultimap.java133 for (Collection<V> collection : backingMap().values()) { in trimToSize()
DTables.java365 Map<R, Map<C, V>> backingMap, Supplier<? extends Map<C, V>> factory) { in newCustomTable() argument
366 checkArgument(backingMap.isEmpty()); in newCustomTable()
369 return new StandardTable<R, C, V>(backingMap, factory); in newCustomTable()
DMultimaps.java133 stream.writeObject(backingMap()); in writeObject()
212 stream.writeObject(backingMap()); in writeObject()
290 stream.writeObject(backingMap()); in writeObject()
374 stream.writeObject(backingMap()); in writeObject()
DAbstractMultimap.java159 Map<K, Collection<V>> backingMap() { in backingMap() method in AbstractMultimap
/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/guava/guava-tests/test/com/google/common/collect/
DConcurrentHashMultisetTest.java54 ConcurrentMap<String, AtomicInteger> backingMap; field in ConcurrentHashMultisetTest
59 backingMap = EasyMock.createMock(ConcurrentMap.class); in setUp()
60 expect(backingMap.isEmpty()).andReturn(true); in setUp()
63 multiset = new ConcurrentHashMultiset<String>(backingMap); in setUp()
70 expect(backingMap.get(KEY)).andReturn(new AtomicInteger(COUNT)); in testCount_elementPresent()
78 expect(backingMap.get(KEY)).andReturn(null); in testCount_elementAbsent()
88 expect(backingMap.get(KEY)).andReturn(new AtomicInteger(INITIAL_COUNT)); in testAdd_zero()
97 expect(backingMap.get(KEY)).andReturn(null); in testAdd_firstFewWithSuccess()
98 expect(backingMap.putIfAbsent(eq(KEY), isA(AtomicInteger.class))).andReturn(null); in testAdd_firstFewWithSuccess()
110 expect(backingMap.get(KEY)).andReturn(initial); in testAdd_laterFewWithSuccess()
[all …]
DSimpleAbstractMultisetTest.java68 final Map<E, Integer> backingMap = Maps.newHashMap(); field in SimpleAbstractMultisetTest.NoRemoveMultiset
72 Integer frequency = backingMap.get(element); in add()
80 backingMap.put(element, frequency + occurrences); in add()
86 final Iterator<Map.Entry<E, Integer>> backingEntries = backingMap.entrySet().iterator(); in entryIterator()
104 Integer frequency = backingMap.get(getElement()); in entryIterator()
119 return backingMap.size();
127 Integer count = backingMap.get(element);
131 backingMap.put((E) element, count - occurrences);
134 return backingMap.remove(element);
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.java49 private final Map<K, V> backingMap; field in ForwardingMapTest.StandardImplForwardingMap
51 StandardImplForwardingMap(Map<K, V> backingMap) { in StandardImplForwardingMap() argument
52 this.backingMap = backingMap; in StandardImplForwardingMap()
56 return backingMap; in delegate()
DTreeBasedTableTest.java116 assertFalse(table.backingMap.containsKey("b")); in testClearSubMapOfRowMap()
/external/guava/guava-gwt/src/com/google/common/collect/
DTreeBasedTable_CustomFieldSerializer.java46 Map<?, ?> backingMap = (Map<?, ?>) reader.readObject(); in instantiate() local
50 for (Entry<?, ?> row : backingMap.entrySet()) { in instantiate()
67 writer.writeObject(instance.backingMap); in serialize()
DHashBasedTable_CustomFieldSerializer.java56 writer.writeObject(instance.backingMap); in serialize()