Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for nextIndexAfterRemove (0.13 seconds)

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

      }
    
      @Override
      int nextIndex(int index) {
        int result = getSuccessor(index);
        return (result == ENDPOINT) ? -1 : result;
      }
    
      @Override
      int nextIndexAfterRemove(int oldNextIndex, int removedIndex) {
        return (oldNextIndex == size()) ? removedIndex : oldNextIndex;
      }
    
      private int getPredecessor(int entry) {
        return (int) (links[entry] >>> 32);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 5.9K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

        return table.length - 1;
      }
    
      int firstIndex() {
        return (size == 0) ? -1 : 0;
      }
    
      int nextIndex(int index) {
        return (index + 1 < size) ? index + 1 : -1;
      }
    
      int nextIndexAfterRemove(int oldNextIndex, @SuppressWarnings("unused") int removedIndex) {
        return oldNextIndex - 1;
      }
    
      int size() {
        return size;
      }
    
      @SuppressWarnings("unchecked")
      @ParametricNullness
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 14.5K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

        @Override
        public void remove() {
          checkForConcurrentModification();
          CollectPreconditions.checkRemove(toRemove != -1);
          size -= backingMap.removeEntry(toRemove);
          entryIndex = backingMap.nextIndexAfterRemove(entryIndex, toRemove);
          toRemove = -1;
          expectedModCount = backingMap.modCount;
        }
      }
    
      @Override
      final Iterator<E> elementIterator() {
        return new Itr<E>() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 05 23:15:58 GMT 2025
    - 7.9K bytes
    - Click Count (0)
Back to Top