Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for backingMap (0.04 sec)

  1. android/guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

            return backingMap.getEntry(entryIndex);
          }
        };
      }
    
      /** Allocation-free implementation of {@code target.addAll(this)}. */
      void addTo(Multiset<? super E> target) {
        checkNotNull(target);
        for (int i = backingMap.firstIndex(); i >= 0; i = backingMap.nextIndex(i)) {
          target.add(backingMap.getKey(i), backingMap.getValue(i));
        }
      }
    
      @Override
      final int distinctElements() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 05 23:15:58 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

      /** Standard constructor. */
      protected AbstractMapBasedMultiset(Map<E, Count> backingMap) {
        checkArgument(backingMap.isEmpty());
        this.backingMap = backingMap;
      }
    
      /** Used during deserialization only. The backing map must be empty. */
      void setBackingMap(Map<E, Count> backingMap) {
        this.backingMap = backingMap;
      }
    
      // Required Implementations
    
      /**
       * {@inheritDoc}
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

      ConcurrentMap<String, AtomicInteger> backingMap;
      ConcurrentHashMultiset<String> multiset;
    
      @SuppressWarnings("unchecked")
      @Override
      protected void setUp() {
        backingMap = mock(ConcurrentMap.class);
        when(backingMap.isEmpty()).thenReturn(true);
    
        multiset = ConcurrentHashMultiset.create(backingMap);
      }
    
      public void testCount_elementPresent() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Dec 08 22:42:14 UTC 2025
    - 16.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java

        @Override
        public int add(E element, int occurrences) {
          checkArgument(occurrences >= 0);
          Integer frequency = backingMap.getOrDefault(element, 0);
          if (occurrences == 0) {
            return frequency;
          }
          checkArgument(occurrences <= Integer.MAX_VALUE - frequency);
          backingMap.put(element, frequency + occurrences);
          return frequency;
        }
    
        @Override
        Iterator<E> elementIterator() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/MutableClassToInstanceMap.java

        private final Map<Class<? extends @NonNull B>, B> backingMap;
    
        SerializedForm(Map<Class<? extends @NonNull B>, B> backingMap) {
          this.backingMap = backingMap;
        }
    
        Object readResolve() {
          return create(backingMap);
        }
    
        private static final long serialVersionUID = 0;
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 22:10:29 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ForwardingNavigableMapTest.java

        private final NavigableMap<K, V> backingMap;
    
        StandardImplForwardingNavigableMap(NavigableMap<K, V> backingMap) {
          this.backingMap = backingMap;
        }
    
        @Override
        protected NavigableMap<K, V> delegate() {
          return backingMap;
        }
    
        @Override
        public boolean containsKey(Object key) {
          return standardContainsKey(key);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Dec 16 03:23:31 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/HashBasedTable.java

          int expectedRows, int expectedCellsPerRow) {
        checkNonnegative(expectedCellsPerRow, "expectedCellsPerRow");
        Map<R, Map<C, V>> backingMap = Maps.newLinkedHashMapWithExpectedSize(expectedRows);
        return new HashBasedTable<>(backingMap, new Factory<C, V>(expectedCellsPerRow));
      }
    
      /**
       * Creates a {@code HashBasedTable} with the same mappings as the specified table.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/HashBasedTable.java

          int expectedRows, int expectedCellsPerRow) {
        checkNonnegative(expectedCellsPerRow, "expectedCellsPerRow");
        Map<R, Map<C, V>> backingMap = Maps.newLinkedHashMapWithExpectedSize(expectedRows);
        return new HashBasedTable<>(backingMap, new Factory<C, V>(expectedCellsPerRow));
      }
    
      /**
       * Creates a {@code HashBasedTable} with the same mappings as the specified table.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/StandardRowSortedTable.java

       * RowSortedTable subinterface with the revised methods?
       */
    
      StandardRowSortedTable(
          SortedMap<R, Map<C, V>> backingMap, Supplier<? extends Map<C, V>> factory) {
        super(backingMap, factory);
      }
    
      private SortedMap<R, Map<C, V>> sortedBackingMap() {
        return (SortedMap<R, Map<C, V>>) backingMap;
      }
    
      /**
       * {@inheritDoc}
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 15:05:43 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Tables.java

        checkArgument(backingMap.isEmpty());
        checkNotNull(factory);
        // TODO(jlevy): Wrap factory to validate that the supplied maps are empty?
        return new StandardTable<>(backingMap, factory);
      }
    
      /**
       * Returns a view of a table where each value is transformed by a function. All other properties
       * of the table, such as iteration order, are left intact.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
Back to top