Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for checkRemove (0.14 sec)

  1. guava/src/com/google/common/collect/CollectPreconditions.java

        }
      }
    
      /**
       * Precondition tester for {@code Iterator.remove()} that throws an exception with a consistent
       * error message.
       */
      static void checkRemove(boolean canRemove) {
        checkState(canRemove, "no calls to next() since the last call to remove()");
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 30 10:33:07 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

          entryIndex = backingMap.nextIndex(entryIndex);
          return result;
        }
    
        @Override
        public void remove() {
          checkForConcurrentModification();
          CollectPreconditions.checkRemove(toRemove != -1);
          size -= backingMap.removeEntry(toRemove);
          entryIndex = backingMap.nextIndexAfterRemove(entryIndex, toRemove);
          toRemove = -1;
          expectedModCount = backingMap.modCount;
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 06 16:06:58 UTC 2023
    - 8.2K bytes
    - Viewed (0)
Back to top