Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for putIfAbsent (0.23 sec)

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

          }
          checkArgument(occurrences > 0, "Invalid occurrences: %s", occurrences);
    
          while (true) {
            int current = count(element);
            if (current == 0) {
              if (countMap.putIfAbsent(element, occurrences) == null) {
                return 0;
              }
            } else {
              checkArgument(
                  occurrences <= Integer.MAX_VALUE - current,
    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

          }
          checkArgument(occurrences > 0, "Invalid occurrences: %s", occurrences);
    
          while (true) {
            int current = count(element);
            if (current == 0) {
              if (countMap.putIfAbsent(element, occurrences) == null) {
                return 0;
              }
            } else {
              checkArgument(
                  occurrences <= Integer.MAX_VALUE - current,
    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