Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for checkNonNegative (0.26 sec)

  1. guava-tests/benchmark/com/google/common/collect/ConcurrentHashMultisetBenchmark.java

         * @throws IllegalArgumentException if {@code oldCount} or {@code newCount} is negative
         */
        @Override
        public boolean setCount(E element, int oldCount, int newCount) {
          checkNonnegative(oldCount, "oldCount");
          checkNonnegative(newCount, "newCount");
          if (newCount == 0) {
            if (oldCount == 0) {
              // No change to make, but must return true if the element is not present
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed May 09 15:17:25 GMT 2018
    - 16.6K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/collect/ConcurrentHashMultisetBenchmark.java

         * @throws IllegalArgumentException if {@code oldCount} or {@code newCount} is negative
         */
        @Override
        public boolean setCount(E element, int oldCount, int newCount) {
          checkNonnegative(oldCount, "oldCount");
          checkNonnegative(newCount, "newCount");
          if (newCount == 0) {
            if (oldCount == 0) {
              // No change to make, but must return true if the element is not present
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 16.6K bytes
    - Viewed (0)
Back to top