Revert "Drop deprecated toGenerator and toLinkedList." until RC

This commit is contained in:
Ilya Gorbunov
2015-11-29 04:30:31 +03:00
parent f8fe3e6c1d
commit 941167e241
6 changed files with 121 additions and 0 deletions
@@ -1049,6 +1049,14 @@ public fun <T> Iterable<T>.toHashSet(): HashSet<T> {
return toCollection(HashSet<T>(mapCapacity(collectionSizeOrDefault(12))))
}
/**
* Returns a [LinkedList] containing all elements.
*/
@Deprecated("Use toCollection(LinkedList()) instead.", ReplaceWith("toCollection(LinkedList())"))
public fun <T> Iterable<T>.toLinkedList(): LinkedList<T> {
return toCollection(LinkedList())
}
/**
* Returns a [List] containing all elements.
*/