/guava/android/guava/src/com/google/common/collect/Ordering.java
Integer alreadySet = uids.putIfAbsent( obj, uid) ; uid = counter.getAndIncrement( ) ;
uid = counter.getAndIncrement ( ) ; Integer alreadySet = uids.putIfAbsent ( obj, uid ) ;
private final AtomicInteger counter = new AtomicInteger(0); private final ConcurrentMap<Object, Integer> uids = Platform.tryWeakKeys(new MapMaker()).makeMap(); private Integer getUid(Object obj) { Integer uid = uids.get(obj); if (uid == null) { <extra_id_0> if (alreadySet != null) { uid = alreadySet; } } return uid; }