Ilya Gorbunov
|
a25f23a286
|
Apply @OnlyInputTypes on type parameter for contains, indexOf, lastIndexOf extensions for Iterables, Sequences and Arrays instead of @NoInfer on element parameter.
Provide covariant extensions annotated with @OnlyInputTypes:
- Collection<T>: containsAll(Collection<T>),
- MutableCollection<out T>: remove(T), removeAll, retainAll (Collection<T>),
- List<T>: indexOf(T), lastIndexOf(T)
- Map<out K, V>: get(K), containsKey(K), contains(K)
- Map<K, V>: containsValue(V)
- MutableMap<out K, V>: remove(K)
All *Raw extensions are deprecated.
|
2015-11-28 07:20:24 +03:00 |
|