Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 2,679 for Add (0.12 sec)

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

        extends AbstractCollectionTester<E> {
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testAddAll_supportedNothing() {
        assertFalse("addAll(nothing) should return false", collection.addAll(emptyCollection()));
        expectUnchanged();
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_ADD)
      public void testAddAll_unsupportedNothing() {
        try {
          assertFalse(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java

        } catch (IllegalArgumentException expected) {
        }
      }
    
      // Negative oldCount.
    
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testSetCountConditional_negativeOldCount_addSupported() {
        assertSetCountNegativeOldCount();
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_ADD)
      public void testSetCountConditional_negativeOldCount_addUnsupported() {
        try {
          assertSetCountNegativeOldCount();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 21 15:08:35 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  3. maven-compat/src/main/java/org/apache/maven/project/interpolation/AbstractStringBasedModelInterpolator.java

            // code below...
            translatedPrefixes.add("build.directory");
            translatedPrefixes.add("build.outputDirectory");
            translatedPrefixes.add("build.testOutputDirectory");
            translatedPrefixes.add("build.sourceDirectory");
            translatedPrefixes.add("build.testSourceDirectory");
            translatedPrefixes.add("build.scriptSourceDirectory");
            translatedPrefixes.add("reporting.outputDirectory");
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 13.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/MultisetsCollectionTest.java

            multiset1.add("equalIn1");
            multiset1.add("fewerIn1");
            multiset2.add("equalIn1");
            multiset2.add("fewerIn1", 3);
            multiset2.add("onlyIn2", 2);
            for (int i = 0; i < elements.length; i++) {
              // add 1 more copy of each element to multiset1 than multiset2
              multiset1.add(elements[i], i + 2);
              multiset2.add(elements[i], i + 1);
            }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 9.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/MultisetsCollectionTest.java

            multiset1.add("equalIn1");
            multiset1.add("fewerIn1");
            multiset2.add("equalIn1");
            multiset2.add("fewerIn1", 3);
            multiset2.add("onlyIn2", 2);
            for (int i = 0; i < elements.length; i++) {
              // add 1 more copy of each element to multiset1 than multiset2
              multiset1.add(elements[i], i + 2);
              multiset2.add(elements[i], i + 1);
            }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 9.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/MoreObjects.java

       * // Returns "ClassName{x=1}"
       * MoreObjects.toStringHelper(this)
       *     .add("x", 1)
       *     .toString();
       *
       * // Returns "MyObject{x=1}"
       * MoreObjects.toStringHelper("MyObject")
       *     .add("x", 1)
       *     .toString();
       *
       * // Returns "ClassName{x=1, y=foo}"
       * MoreObjects.toStringHelper(this)
       *     .add("x", 1)
       *     .add("y", "foo")
       *     .toString();
       *
       * // Returns "ClassName{x=1}"
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 15.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ForwardingList.java

      }
    
      /**
       * A sensible default implementation of {@link #add(Object)}, in terms of {@link #add(int,
       * Object)}. If you override {@link #add(int, Object)}, you may wish to override {@link
       * #add(Object)} to forward to this implementation.
       *
       * @since 7.0
       */
      protected boolean standardAdd(@ParametricNullness E element) {
        add(size(), element);
        return true;
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri May 12 15:26:39 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/cache/AbstractCache.java

          CacheStats otherStats = other.snapshot();
          hitCount.add(otherStats.hitCount());
          missCount.add(otherStats.missCount());
          loadSuccessCount.add(otherStats.loadSuccessCount());
          loadExceptionCount.add(otherStats.loadExceptionCount());
          totalLoadTime.add(otherStats.totalLoadTime());
          evictionCount.add(otherStats.evictionCount());
        }
      }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 9.1K bytes
    - Viewed (0)
  9. cmd/post-policy_test.go

    	t := UTCNow()
    	// Add the expiration date.
    	expirationStr := fmt.Sprintf(`"expiration": "%s"`, expiration.Format(iso8601TimeFormat))
    	// Add the bucket condition, only accept buckets equal to the one passed.
    	bucketConditionStr := fmt.Sprintf(`["eq", "$bucket", "%s"]`, bucketName)
    	// Add the key condition, only accept keys equal to the one passed.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

        int COUNT_TO_ADD = 400;
    
        AtomicInteger initial = new AtomicInteger(INITIAL_COUNT);
        when(backingMap.get(KEY)).thenReturn(initial);
    
        assertEquals(INITIAL_COUNT, multiset.add(KEY, COUNT_TO_ADD));
        assertEquals(INITIAL_COUNT + COUNT_TO_ADD, initial.get());
      }
    
      public void testAdd_laterFewWithOverflow() {
        final int INITIAL_COUNT = 92384930;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.2K bytes
    - Viewed (0)
Back to top