Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 2,076 for remove (0.21 sec)

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

      }
    
      // retainAll(empty)
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(ZERO)
      public void testRetainAll_emptyPreviouslyEmpty() {
        expectReturnsFalse(empty);
        expectUnchanged();
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      @CollectionSize.Require(ZERO)
      public void testRetainAll_emptyPreviouslyEmptyUnsupported() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        assertEquals((Integer) 2, it.next());
        it.remove();
        // After this remove, 400 has moved up and 20 down past cursor
        assertTrue("Heap is not intact after remove", mmHeap.isIntact());
        assertEquals((Integer) 10, it.next());
        assertEquals((Integer) 3, it.next());
        it.remove();
        // After this remove, 400 moved down again and 500 up past the cursor
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

        }
      }
    
      void expectRemoveZero(SortedMultiset<E> multiset, Entry<E> entry) {
        assertEquals(0, multiset.remove(entry.getElement(), entry.getCount()));
        assertFalse(multiset.remove(entry.getElement()));
        assertFalse(multiset.elementSet().remove(entry.getElement()));
      }
    
      void expectSetCountFailure(SortedMultiset<E> multiset, Entry<E> entry) {
        try {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 25.9K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/SetRemoveTester.java

    public class SetRemoveTester<E> extends AbstractSetTester<E> {
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(absent = ZERO)
      public void testRemove_present() {
        getSet().remove(e0());
        assertFalse(
            "After remove(present) a set should not contain the removed element.",
            getSet().contains(e0()));
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 1.7K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveTester.java

        int initialSize = getList().size();
        assertTrue("remove(present) should return true", getList().remove(duplicate));
        assertTrue(
            "After remove(duplicate), a list should still contain the duplicate element",
            getList().contains(duplicate));
        assertFalse(
            "remove(duplicate) should remove the first instance of the "
                + "duplicate element in the list",
    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)
  6. guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveEntryTester.java

      public void testRemove_supportedWrongKeyPresentValue() {
        assertFalse(getMap().remove(k3(), v0()));
        expectUnchanged();
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testRemove_supportedAbsentKeyAbsentValue() {
        assertFalse(getMap().remove(k3(), v3()));
        expectUnchanged();
      }
    
      @MapFeature.Require(value = SUPPORTS_REMOVE, absent = ALLOWS_NULL_KEY_QUERIES)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3.7K bytes
    - Viewed (0)
  7. src/packaging/common/scripts/prerm

    #
    # This script is executed in the pre-remove phase
    #
    #   On Debian,
    #       $1=remove    : indicates a removal
    #       $1=upgrade   : indicates an upgrade
    #
    #   On RedHat,
    #       $1=0         : indicates a removal
    #       $1=1         : indicates an upgrade
    
    
    
    STOP_REQUIRED=false
    
    case "$1" in
    
        # Debian ####################################################
        remove)
            STOP_REQUIRED=true
        ;;
    Plain Text
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Mon Jan 29 07:34:32 GMT 2018
    - 1.7K bytes
    - Viewed (1)
  8. guava-testlib/src/com/google/common/collect/testing/features/ListFeature.java

      SUPPORTS_REMOVE_WITH_INDEX(CollectionFeature.SUPPORTS_REMOVE),
    
      GENERAL_PURPOSE(
          CollectionFeature.GENERAL_PURPOSE,
          SUPPORTS_SET,
          SUPPORTS_ADD_WITH_INDEX,
          SUPPORTS_REMOVE_WITH_INDEX),
    
      /** Features supported by lists where only removal is allowed. */
      REMOVE_OPERATIONS(CollectionFeature.REMOVE_OPERATIONS, SUPPORTS_REMOVE_WITH_INDEX);
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/EvictingQueueTest.java

              }
            };
    
        EvictingQueue<String> queue = EvictingQueue.create(3);
        assertTrue(queue.addAll(misbehavingList));
    
        assertEquals("three", queue.remove());
        assertEquals("four", queue.remove());
        assertEquals("five", queue.remove());
        assertTrue(queue.isEmpty());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNullPointerExceptions() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

        }
    
        @Override
        public void remove() {
          valueIterator.remove();
          /*
           * requireNonNull is safe because we've already initialized `collection`. If we hadn't, then
           * valueIterator.remove() would have failed.
           */
          if (requireNonNull(collection).isEmpty()) {
            keyIterator.remove();
          }
          totalSize--;
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 48K bytes
    - Viewed (0)
Back to top