Alexander Udalov
da6d904c6e
Suppress code warnings in kotlin-stdlib
2020-08-20 20:30:34 +02:00
Ilya Gorbunov
99eb7f391b
Fix doc wording around covariance/invariance
2020-08-04 00:33:05 +03:00
Ilya Gorbunov
b0a234ec74
Minor: collection docs formatting
2019-03-19 03:12:09 +03:00
Ilya Gorbunov
bc444df20c
Clarify behavior of MutableSet.add (KT-29373)
2019-03-19 03:12:04 +03:00
Ilya Gorbunov
b1c4590537
Override docs of MutableList.add/addAll methods
...
#KT-25632
2018-10-01 18:09:09 +03:00
Ilya Gorbunov
a21dbf08a8
Reorder values and entries in MutableMap to match docs
...
Also change references to mutable collections in docs.
#KT-18670 Fixed
2017-07-01 17:05:17 +03:00
Ilya Gorbunov
7c54c48e00
Add a note about generic parameter variance to Iterable, Collection, List, Set, Map and their mutable counterparts.
...
Minor: correct docs, code formatting.
2017-02-08 20:13:22 +03:00
Ilya Gorbunov
2a7717214b
Annotate new API with @SinceKotlin in kotlin-runtime except reflection and type aliases.
2016-10-13 08:37:31 +03:00
Denis Zharkov
915e36cb02
Add Map.getOrDefault method as PlatformDependent declaration with refined signature
...
- First parameter should have type of K instead of Any
- Special bridge should return second parameter if a key has wrong type
- Special bridge may throw an exception if defaultValue has wrong type
#KT-13209 Fixed
2016-07-27 18:46:13 +03:00
Denis Zharkov
d259b91143
Add MutableMap.remove(K, V) as built-in declaration
...
Use PlatformDependent annotation to guarantee it's only be available for JDK8
Also adjust type-safe bridges and mutable collection stubs generation
2016-04-29 15:08:54 +03:00
Ilya Gorbunov
9c0f0cad70
Packages: move collections to kotlin.collections.
2016-01-22 05:54:38 +03:00
Denis Zharkov
28c46b73f1
Rename some of builtin parameters
2015-10-17 17:46:16 +03:00
Mikhail Glukhikh
78cfeb0d7d
Stdlib rename: List.indexOf(T), List.lastIndexOf(T), MutableCollection.removeAll(Collection<T>), MutableCollection.retainAll(Collection<T>)
2015-10-14 20:40:09 +03:00
Denis Zharkov
6322198a11
Revert 'isEmpty' transformation
2015-10-14 20:40:01 +03:00
Denis Zharkov
6fa8083a70
Transform builtin Map declaration and adjust stdlib
2015-10-14 20:39:38 +03:00
Denis Zharkov
3f5498e9f5
Transform some builtin methods
...
1. CharSequence.charAt -> get
2. ML.remove(Int) -> removeAt,
3. MC.remove(Any?) -> MC.remove(E)
2015-10-11 19:57:21 +03:00
Denis Zharkov
cfc9d19825
Transform Collection.isEmpty and Map.Entry.key/value to properties
2015-10-10 12:29:14 +03:00
Denis Zharkov
d27d3950fb
Refine signature for Collection.contains/containsAll
2015-10-09 14:40:33 +03:00
Denis Zharkov
9d087ce5bd
Convert size() functions in builtins to properties
...
Just like it will work itself out :)
2015-10-06 23:56:17 +03:00
Yan Zhulanow
1139a8dd0e
Mark builtins and stblib functions with 'operator'
2015-09-25 19:20:18 +03:00
Ilya Gorbunov
ecba29a08a
Reword contract of Collection's removeAll and retainAll to emphasize that the criteria to remove or retain element is the containment in the specified collection.
...
Collection.remove(element): clarify docs.
2015-07-17 10:52:38 +03:00
Dmitry Jemerov
2a99f757c4
replace 'trait' keyword with 'interface' in library code
2015-05-12 17:07:46 +02:00
Dmitry Jemerov
2cc291efdb
Standard library documentation continued.
2015-03-03 11:20:30 +01:00
Alexander Udalov
21b2fa2509
Update copyrights to 2015
2015-01-13 01:15:18 +03:00
Alexander Udalov
685a1c38e2
Fix indent in built-in sources
2014-10-27 17:17:26 +03:00
Alexander Udalov
8762a02844
Add/update copyrights in built-ins sources
2014-03-02 19:55:29 +04:00
Alexander Udalov
d9029917eb
Move built-ins from package "jet" to "kotlin"
...
#KT-2896 Fixed
2014-03-02 19:55:20 +04:00