Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for putIfAbsent (0.19 sec)

  1. android/guava/src/com/google/common/collect/Ordering.java

            // to generate a UID for the same object from multiple threads, but
            // that shouldn't be a problem.
            uid = counter.getAndIncrement();
            Integer alreadySet = uids.putIfAbsent(obj, uid);
            if (alreadySet != null) {
              uid = alreadySet;
            }
          }
          return uid;
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 39.4K bytes
    - Viewed (0)
Back to top