Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 141 for setCount (0.2 sec)

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

        assertTrue(
            "setCount() with the correct expected present count should return true",
            setCount(element, count));
      }
    
      @Override
      void setCountNoCheckReturnValue(E element, int count) {
        setCount(element, count);
      }
    
      @CanIgnoreReturnValue
      private boolean setCount(E element, int count) {
        return getMultiset().setCount(element, getMultiset().count(element), count);
      }
    
    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)
  2. docs/debugging/hash-set/main.go

    	flag.IntVar(&setCount, "set-count", 0, "Total set count")
    	flag.IntVar(&shards, "shards", 0, "Total shards count")
    	flag.BoolVar(&verbose, "v", false, "Display all objects")
    
    	flag.Parse()
    
    	if deploymentID == "" {
    		log.Fatalln("deployment ID is mandatory")
    	}
    
    	if setCount == 0 {
    		log.Fatalln("set count cannot be zero")
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ForwardingMultiset.java

      }
    
      @CanIgnoreReturnValue
      @Override
      public int setCount(@ParametricNullness E element, int count) {
        return delegate().setCount(element, count);
      }
    
      @CanIgnoreReturnValue
      @Override
      public boolean setCount(@ParametricNullness E element, int oldCount, int newCount) {
        return delegate().setCount(element, oldCount, newCount);
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri May 12 15:26:39 GMT 2023
    - 10.4K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountUnconditionallyTester.java

        assertEquals(
            "multiset.setCount() should return the old count",
            getMultiset().count(element),
            setCount(element, count));
      }
    
      @Override
      void setCountNoCheckReturnValue(E element, int count) {
        setCount(element, count);
      }
    
      @CanIgnoreReturnValue
      private int setCount(E element, int count) {
        return getMultiset().setCount(element, count);
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 21 15:08:35 GMT 2022
    - 1.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

        }
    
        frequency.add(-numberRemoved);
        size -= numberRemoved;
        return oldCount;
      }
    
      // Roughly a 33% performance improvement over AbstractMultiset.setCount().
      @CanIgnoreReturnValue
      @Override
      public int setCount(@ParametricNullness E element, int count) {
        checkNonnegative(count, "count");
    
        Count existingCounter;
        int oldCount;
        if (count == 0) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 10.4K bytes
    - Viewed (0)
  6. cmd/format-erasure_test.go

    }
    
    // Tests getFormatErasureInQuorum()
    func TestGetFormatErasureInQuorumCheck(t *testing.T) {
    	setCount := 2
    	setDriveCount := 16
    
    	format := newFormatErasureV3(setCount, setDriveCount)
    	format.Erasure.DistributionAlgo = formatErasureVersionV2DistributionAlgoV1
    	formats := make([]*formatErasureV3, 32)
    
    	for i := 0; i < setCount; i++ {
    		for j := 0; j < setDriveCount; j++ {
    			newFormat := format.Clone()
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java

      }
    
      /** Call the {@code setCount()} method under test, and check its return value. */
      abstract void setCountCheckReturnValue(E element, int count);
    
      /**
       * Call the {@code setCount()} method under test, but do not check its return value. Callers
       * should use this method over {@link #setCountCheckReturnValue(Object, int)} when they expect
       * {@code setCount()} to throw an exception, as checking the return value could produce an
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java

      }
    
      /** Call the {@code setCount()} method under test, and check its return value. */
      abstract void setCountCheckReturnValue(E element, int count);
    
      /**
       * Call the {@code setCount()} method under test, but do not check its return value. Callers
       * should use this method over {@link #setCountCheckReturnValue(Object, int)} when they expect
       * {@code setCount()} to throw an exception, as checking the return value could produce an
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Multiset.java

       *     zero instead.
       */
      @CanIgnoreReturnValue
      int setCount(@ParametricNullness E element, int count);
    
      /**
       * Conditionally sets the count of an element to a new value, as described in {@link
       * #setCount(Object, int)}, provided that the element has the expected current count. If the
       * current count is not {@code oldCount}, no change is made.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 19.7K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java

        assertTrue(
            "setCount() with the correct expected present count should return true",
            setCount(element, count));
      }
    
      @Override
      void setCountNoCheckReturnValue(E element, int count) {
        setCount(element, count);
      }
    
      @CanIgnoreReturnValue
      private boolean setCount(E element, int count) {
        return getMultiset().setCount(element, getMultiset().count(element), count);
      }
    
    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)
Back to top