Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for firstIndex (0.19 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveTester.java

        ArrayWithDuplicate<E> arrayAndDuplicate = createArrayWithDuplicateElement();
        collection = getSubjectGenerator().create(arrayAndDuplicate.elements);
        E duplicate = arrayAndDuplicate.duplicate;
    
        int firstIndex = getList().indexOf(duplicate);
        int initialSize = getList().size();
        assertTrue("remove(present) should return true", getList().remove(duplicate));
        assertTrue(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 2.5K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveTester.java

        ArrayWithDuplicate<E> arrayAndDuplicate = createArrayWithDuplicateElement();
        collection = getSubjectGenerator().create(arrayAndDuplicate.elements);
        E duplicate = arrayAndDuplicate.duplicate;
    
        int firstIndex = getList().indexOf(duplicate);
        int initialSize = getList().size();
        assertTrue("remove(present) should return true", getList().remove(duplicate));
        assertTrue(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 2.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

       * enough it's not especially worth it.
       */
      abstract class Itr<T extends @Nullable Object> implements Iterator<T> {
        int entryIndex = backingMap.firstIndex();
        int toRemove = -1;
        int expectedModCount = backingMap.modCount;
    
        @ParametricNullness
        abstract T result(int entryIndex);
    
        private void checkForConcurrentModification() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 8.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ObjectCountLinkedHashMap.java

        super(expectedSize, loadFactor);
      }
    
      ObjectCountLinkedHashMap(ObjectCountHashMap<K> map) {
        init(map.size(), DEFAULT_LOAD_FACTOR);
        for (int i = map.firstIndex(); i != -1; i = map.nextIndex(i)) {
          put(map.getKey(i), map.getValue(i));
        }
      }
    
      @Override
      void init(int expectedSize, float loadFactor) {
        super.init(expectedSize, loadFactor);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jun 01 22:07:10 GMT 2021
    - 5.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

      ObjectCountHashMap() {
        init(DEFAULT_SIZE, DEFAULT_LOAD_FACTOR);
      }
    
      ObjectCountHashMap(ObjectCountHashMap<? extends K> map) {
        init(map.size(), DEFAULT_LOAD_FACTOR);
        for (int i = map.firstIndex(); i != -1; i = map.nextIndex(i)) {
          put(map.getKey(i), map.getValue(i));
        }
      }
    
      /**
       * Constructs a new instance of {@code ObjectCountHashMap} with the specified capacity.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jun 01 22:07:10 GMT 2021
    - 15K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableMultiset.java

            ObjectCountHashMap<? extends E> backingMap = tryGetMap(multiset);
            if (backingMap != null) {
              contents.ensureCapacity(Math.max(contents.size(), backingMap.size()));
              for (int i = backingMap.firstIndex(); i >= 0; i = backingMap.nextIndex(i)) {
                addCopies(backingMap.getKey(i), backingMap.getValue(i));
              }
            } else {
              Set<? extends Entry<? extends E>> entries = multiset.entrySet();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 22.4K bytes
    - Viewed (0)
Back to top