Rename namespace->package in the token decala
This commit is contained in:
@@ -18,11 +18,11 @@ fun <K, V> JMap<K, V>.set(key : K, value : V) = this.put(key, value)
|
||||
|
||||
/** Returns the key of the entry */
|
||||
val <K,V> JEntry<K,V>.key : K
|
||||
get() = getKey()
|
||||
get() = getKey().sure()
|
||||
|
||||
/** Returns the value of the entry */
|
||||
val <K,V> JEntry<K,V>.value : V
|
||||
get() = getValue()
|
||||
get() = getValue().sure()
|
||||
|
||||
/** Returns the value for the given key or returns the result of the defaultValue function if there was no entry for the given key */
|
||||
inline fun <K,V> java.util.Map<K,V>.getOrElse(key: K, defaultValue: ()-> V) : V {
|
||||
|
||||
Reference in New Issue
Block a user