710 |
|
/** |
711 |
|
* Returns true if given key greater than or equal to least and |
712 |
|
* strictly less than fence, bypassing either test if least or |
713 |
< |
* fence oare null. Needed mainly in submap operations. |
713 |
> |
* fence are null. Needed mainly in submap operations. |
714 |
|
*/ |
715 |
|
boolean inHalfOpenRange(K key, K least, K fence) { |
716 |
|
if (key == null) |
2094 |
|
* This is equivalent to |
2095 |
|
* <pre> |
2096 |
|
* if (!map.containsKey(key)) |
2097 |
< |
* return map.put(key, value); |
2097 |
> |
* return map.put(key, value); |
2098 |
|
* else |
2099 |
< |
* return map.get(key); |
2099 |
> |
* return map.get(key); |
2100 |
|
* </pre> |
2101 |
|
* except that the action is performed atomically. |
2102 |
|
* @param key key with which the specified value is to be associated. |