fun putIfAbsentBoolean(key: K?, value: V?): BooleanAtomically associates the specified key with the given value if it is not already associated with a value.
This is equivalent to:
if(cache.containsKey(key)){}cache.put(key,value);return true;}else{return false;} *
except that the action is performed atomically.
key - key with which the specified value is to be associatedvalue - value to be associated with the specified keyNullPointerException - if key is null or value is nullIllegalStateException - if the cache is .isClosedClassCastException - if the implementation is configured to perform
runtime-type-checking, and the key or value
types are incompatible with those that have been
configured with different serialziers
TODO link to JCache standard
TODO credits for javadocReturn
true if a value was set.