James Strachan
a68b00dfd4
renamed the rather long getOrElseUpdate to a simpler getOrPut which is a bit simpler and more accurate; as a new entry is put into the Map if its null
2012-02-21 11:29:50 +00:00
James Strachan
724f7860ab
tried moving helper function to where the other global util functions are defined to try avoid namespace method disappearing
2012-02-21 11:29:50 +00:00
James Strachan
e39aa727a9
added helper method for creating hash maps
2012-02-21 11:29:50 +00:00
James Strachan
c308eb7b7f
added link to issue
2012-02-21 11:29:50 +00:00
Andrey Breslav
bff62484b1
KT-1306123.lng or 123.sht is not good name
2012-02-20 21:42:13 +04:00
James Strachan
094d5d2e70
added a few classes for doing property change listening (using pure kotlin code so its easier to work with JS and Java)
2012-02-20 15:38:34 +00:00
James Strachan
3d3b41da4f
improved the DOM API a little with a few more helper methods and syntax sugar
2012-02-20 10:03:38 +00:00
Nikolay Krasko
795b30e7b0
KT-1259 Parameter info fails to extract parameter names from java method
2012-02-16 17:10:45 +04:00
Maxim Shafirov
a03922d467
Copyrights set to Apache, reflecting it's now open source
2012-02-14 19:25:06 +04:00
Alex Tkachman
a6fdd0fd05
actors example - stock server
2012-02-10 11:37:34 +02:00
Alex Tkachman
8e6e8e938c
def args in constructors
2012-02-09 20:36:09 +02:00
James Strachan
d604272744
zapped the redundant getOrElse method as the ?: does indeed work with lazy expressions (no function definition required) - thanks for spotting this Andrey! :)
2012-02-09 06:25:52 +00:00
James Strachan
659fceecbe
removed unnecessary getOrElse(value) method as we can use ?: (which is neater!) though shame it doesn't work for lazy values, passing a function body which is invoked if the value is not null
2012-02-08 11:45:59 +00:00
James Strachan
ef269a9f81
added a simple builder API to the std.dom API
2012-02-08 07:57:18 +00:00
James Strachan
a3cd65f10e
added a little spike of a little std.dom API to make the W3C DOM API a little kooler
2012-02-08 07:57:18 +00:00
James Strachan
5057bf732e
added a helper method for easily converting from a nullable type to a non nullable type with a non-lazy value, or lazy factory function
2012-02-08 07:57:18 +00:00
Alex Tkachman
adfce7e22d
KT-274 Enumeration.iterator()
2012-02-07 16:41:11 +02:00
svtk
6251b413a2
New check rules for inc, plus & plusAssign
...
KT-1176 arrayList[0]++. Setter is stored for array access expression when it's needed
2012-02-03 12:10:12 +04:00
Alex Tkachman
948ccc5205
javaClass<T>() function
2012-02-03 09:46:40 +02:00
Alex Tkachman
43a2a27966
String.endWith & replace added
2012-02-03 08:48:03 +02:00
Alex Tkachman
b63fbccba6
actors moved from stdlib to example
2012-02-02 13:02:48 +02:00
Alex Tkachman
fd3ae3923a
actors example and related bug fixes
2012-02-02 11:15:26 +02:00
Alex Tkachman
ac729504bf
functional list, queues and package for concurrent
2012-02-01 14:55:36 +02:00
Maxim Shafirov
699c43fe58
Simpler write() action
...
Useful Int.times(block) extension
2012-02-01 16:27:57 +04:00
Alex Tkachman
68a264154f
fixing upgrade logic bug
2012-02-01 13:06:11 +02:00
Alex Tkachman
e7812dc472
Executor.execute method added
2012-02-01 13:05:37 +02:00
Alex Tkachman
9559decfc0
some tweaks of VFS example to be more Kotlin
2012-02-01 10:48:28 +02:00
Alex Tkachman
5f9bab6c93
extension methods for j.i.Timer
2012-02-01 10:42:36 +02:00
Alex Tkachman
cb04ed1eb8
currentThread global property
2012-02-01 10:08:39 +02:00
Alex Tkachman
745d1658aa
locks support
2012-02-01 09:58:18 +02:00
Andrey Breslav
0a808617bb
Temporary workaround: commenting out red code
2012-01-31 15:12:40 +04:00
svtk
4ce9a89d85
added extensions for BigInteger and BigDecimal
2012-01-30 14:55:31 +04:00
svtk
11ad28812d
KT-1175 Mark unused literals
2012-01-27 18:32:55 +04:00
Alex Tkachman
c5d88251a9
CharSequence added in to stdlib
2012-01-25 22:09:32 +02:00
Alex Tkachman
3c13a2cd98
KT-968 String should provide an iterator() method
2012-01-25 09:36:55 +02:00
Stepan Koltsov
309b6b3e0e
fix erased parameters codegen and parsing
2012-01-24 23:11:14 +04:00
Alex Tkachman
8176487c93
changed synchronized from extension method to normal one
2012-01-24 14:48:09 +02:00
Stepan Koltsov
614ee5d690
java.lang.String in signature should serialized and mapped back to java.lang.String
2012-01-24 00:38:26 +04:00
Stepan Koltsov
4b7f3f718e
ReadKotlinBinaryClassTest: fix constructor with type parameter
...
class ClassWithConstructorAndTypeParameter<P>()
2012-01-23 20:19:37 +04:00
svtk
b3eb44e769
removed some string methods from library.jet
2012-01-20 19:32:12 +04:00
Alex Tkachman
86a33f8b16
KT-1076 reversed ranges
2012-01-18 20:01:18 +01:00
Stepan Koltsov
6283f5d829
hacks against KT-941
...
http://youtrack.jetbrains.net/issue/KT-941
2012-01-18 12:08:36 +04:00
Stepan Koltsov
e6b859f7c0
temporary hack for jet.Iterator.hasNext property
...
* javabean property reading will be implemented later
* jet.Iterator will be converted to Islam
2012-01-18 12:08:35 +04:00
Stepan Koltsov
6ceb6816be
ReadKotlinBinaryClassTest: List<*>
2012-01-18 12:03:42 +04:00
Maxim Shafirov
d51c030803
New module script DSL
2012-01-16 20:59:17 +04:00
Stepan Koltsov
133fc683a4
merge @JetProperty and @JetMethod
...
because:
* have common parts
* reduce class size
Also add helper JetMethodAnnotationWriter class
And also do not generate @Jet* annotations for closures
2012-01-13 23:56:13 +04:00
Stepan Koltsov
a8137d1a56
fix another case of property resolution, refactoring
2012-01-13 03:55:11 +04:00
Andrey Breslav
c78cb3cc19
Rename namespace->package in the token decala
2012-01-12 19:50:14 +04:00
Stepan Koltsov
ec5d5e2dcf
working on @JetProperty.type
2012-01-12 07:04:00 +04:00
Andrey Breslav
81a3dcf78b
_1 and such work for Tuples
2012-01-10 12:21:37 +04:00