Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,712 for remove (0.09 sec)

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

      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testRemoveAbsent() {
        assertFalse(multimap().remove(k0(), v1()));
        expectUnchanged();
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testRemovePresent() {
        assertTrue(multimap().remove(k0(), v0()));
    
        assertFalse(multimap().containsEntry(k0(), v0()));
        expectMissing(e0());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java

      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testRemoveAbsent() {
        assertFalse(multimap().remove(k0(), v1()));
        expectUnchanged();
      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testRemovePresent() {
        assertTrue(multimap().remove(k0(), v0()));
    
        assertFalse(multimap().containsEntry(k0(), v0()));
        expectMissing(e0());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/QueueRemoveTester.java

      public void testRemove_empty() {
        assertThrows(NoSuchElementException.class, () -> getQueue().remove());
        expectUnchanged();
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(ONE)
      public void testRemove_size1() {
        assertEquals("size1Queue.remove() should return first element", e0(), getQueue().remove());
        expectMissing(e0());
      }
    
      @CollectionFeature.Require({KNOWN_ORDER, SUPPORTS_REMOVE})
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. okhttp-sse/src/test/java/okhttp3/sse/internal/ServerSentEventIteratorTest.kt

        assertThat(callbacks.remove()).isEqualTo(Event(null, "add", "73857293"))
        assertThat(callbacks.remove()).isEqualTo(Event(null, "remove", "2153"))
        assertThat(callbacks.remove()).isEqualTo(Event(null, "add", "113411"))
      }
    
      @Test
      fun commentsIgnored() {
        consumeEvents(
          """
          |: test stream
          |
          |data: first event
          |id: 1
          |
          |
          """.trimMargin(),
        )
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  5. 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
        ;;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jan 29 07:34:32 UTC 2018
    - 1.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/AtomicLongMap.java

       * otherwise, this method returns false.
       */
      boolean remove(K key, long value) {
        return map.remove(key, value);
      }
    
      /**
       * Atomically remove {@code key} from the map iff its associated value is 0.
       *
       * @since 20.0
       */
      @CanIgnoreReturnValue
      public boolean removeIfZero(K key) {
        return remove(key, 0);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. android/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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  8. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

        E x = items[takeIndex];
        items[takeIndex] = null;
        takeIndex = inc(takeIndex);
        --count;
        return x;
      }
    
      /**
       * Utility for remove and iterator.remove: Delete item at position i. Call only when occupying
       * monitor.
       */
      void removeAt(int i) {
        final E[] items = this.items;
        // if removing front item, just advance
        if (i == takeIndex) {
          items[takeIndex] = null;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 22.5K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/MapRemoveTester.java

        assertThrows(UnsupportedOperationException.class, () -> getMap().remove(k0()));
        expectUnchanged();
        assertEquals("remove(present) should not remove the element", v0(), get(k0()));
      }
    
      @MapFeature.Require(absent = SUPPORTS_REMOVE)
      public void testRemove_unsupportedNotPresent() {
        try {
          assertNull(
              "remove(notPresent) should return null or throw UnsupportedOperationException",
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/collection/LruHashSet.java

        }
    
        /**
         * Removes the specified element from this set if it is present.
         *
         * @param o
         *            object to be removed from this set, if present.
         * @return true if the set contained the specified element.
         */
        @Override
        public boolean remove(final Object o) {
            return map.remove(o) == PRESENT;
        }
    
        /**
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.1K bytes
    - Viewed (0)
Back to top