917 |
|
* Main insertion method. Adds element if not present, or |
918 |
|
* replaces value if present and onlyIfAbsent is false. |
919 |
|
* @param kkey the key |
920 |
< |
* @param value the value that must be associated with key |
920 |
> |
* @param value the value that must be associated with key |
921 |
|
* @param onlyIfAbsent if should not insert if already present |
922 |
|
* @return the old value, or null if newly inserted |
923 |
|
*/ |
3112 |
|
|
3113 |
|
/** |
3114 |
|
* Returns fence key. Needed by ConcurrentSkipListSet. |
3115 |
< |
* @return fence key, or {@code null} of to end |
3115 |
> |
* @return fence key, or {@code null} if to end |
3116 |
|
*/ |
3117 |
|
K getFence() { |
3118 |
|
return fence; |