Rename namespace->package in the token decala

This commit is contained in:
Andrey Breslav
2012-01-12 19:50:14 +04:00
parent db59319f95
commit c78cb3cc19
26 changed files with 68 additions and 69 deletions
+2 -2
View File
@@ -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 {