Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 2,076 for remove (0.35 sec)

  1. 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(),
        )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java

      public void testRemoveNullValueAbsent() {
        assertFalse(multimap().remove(k0(), null));
        expectUnchanged();
      }
    
      @MapFeature.Require(value = SUPPORTS_REMOVE, absent = ALLOWS_NULL_VALUE_QUERIES)
      public void testRemoveNullValueForbidden() {
        try {
          multimap().remove(k0(), null);
          fail("Expected NullPointerException");
        } catch (NullPointerException expected) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 6.6K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveAtIndexTester.java

          getList().remove(-1);
          fail("remove(-1) should throw");
        } catch (IndexOutOfBoundsException expected) {
        }
        expectUnchanged();
      }
    
      @ListFeature.Require(SUPPORTS_REMOVE_WITH_INDEX)
      public void testRemoveAtIndex_tooLarge() {
        try {
          getList().remove(getNumElements());
          fail("remove(size) should throw");
        } catch (IndexOutOfBoundsException expected) {
        }
        expectUnchanged();
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Iterators.java

          if (hasNext()) {
            toRemove = iterator;
            return iterator.next();
          } else {
            throw new NoSuchElementException();
          }
        }
    
        @Override
        public void remove() {
          if (toRemove == null) {
            throw new IllegalStateException("no calls to next() since the last call to remove()");
          }
          toRemove.remove();
          toRemove = null;
        }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 50.5K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java

      public void testRemove_occurrences_negative() {
        try {
          getMultiset().remove(e0(), -1);
          fail("multiset.remove(E, -1) didn't throw an exception");
        } catch (IllegalArgumentException required) {
        }
      }
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testRemove_occurrences_wrongType() {
        assertEquals(
            "multiset.remove(wrongType, 1) didn't return 0",
            0,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Iterables.java

       * removeFrom.removeIf(predicate)} instead.
       *
       * @param removeFrom the iterable to (potentially) remove elements from
       * @param predicate a predicate that determines whether an element should be removed
       * @return {@code true} if any elements were removed from the iterable
       * @throws UnsupportedOperationException if the iterable does not support {@code remove()}.
       * @since 2.0
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

          }
        }
      }
    
      private void compareResultsForThisListOfStimuli() {
        int removes = Collections.frequency(Arrays.asList(stimuli), remove);
        if ((!features.contains(IteratorFeature.SUPPORTS_REMOVE) && removes > 1)
            || (stimuli.length >= 5 && removes > 2)) {
          // removes are the most expensive thing to test, since they often throw exceptions with stack
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  8. cmd/metacache-bucket.go

    			b.debugf("cache %s not worth keeping", id)
    			remove[id] = struct{}{}
    			continue
    		}
    		if cache.id != id {
    			logger.Info("cache ID mismatch %s != %s", id, cache.id)
    			remove[id] = struct{}{}
    			continue
    		}
    		if cache.bucket != b.bucket {
    			logger.Info("cache bucket mismatch %s != %s", b.bucket, cache.bucket)
    			remove[id] = struct{}{}
    			continue
    		}
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  9. android/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;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapRemoveTester.java

          List<V> expectedValues = copyToList(values);
    
          multimap().get(k0()).remove(i);
          expectedValues.remove(i);
    
          assertGet(k0(), expectedValues);
        }
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(SEVERAL)
      public void testRemoveAtIndexFromAsMapPropagates() {
        List<V> values = Arrays.asList(v0(), v1(), v0());
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 3.6K bytes
    - Viewed (0)
Back to top