Load additional JDK functions into built-ins member scope

#KT-5990 Fixed
 #KT-7127 Fixed
 #KT-10370 Fixed
This commit is contained in:
Denis Zharkov
2016-04-06 16:35:50 +03:00
parent 137847e0c9
commit 5bc5722051
63 changed files with 3395 additions and 147 deletions
@@ -33,7 +33,7 @@ class SmartSet<T> private constructor() : AbstractSet<T>() {
fun <T> create() = SmartSet<T>()
@JvmStatic
fun <T> create(set: Set<T>) = SmartSet<T>().apply { this.addAll(set) }
fun <T> create(set: Collection<T>) = SmartSet<T>().apply { this.addAll(set) }
}
// null if size = 0, object if size = 1, array of objects if size < threshold, linked hash set otherwise