-
Notifications
You must be signed in to change notification settings - Fork 1
core
muune edited this page Feb 28, 2019
·
17 revisions
- String._shift()
- String._pop()
- String._firstUpper()
- String._firstLower()
- String._notBlank()
- String._split()
- MutableList._shift()
- MutableList._pop()
- MutableList._notEmpty()
- MutableList._allStack()
- MutableList._cutStack()
- JSONArray._for()
- JSONArray._toList()
- JSONArray._get()
- JSONArray._forObject()
- JSONArray._forList()
- JSONArray._forString()
- JSONArray._forValue()
- JSONArray._mapValue()
- JSONArray._map()
- JSONArray._mapObject()
- JSONArray._mapString()
- JSONArray._list()
- JSONArray._object()
- JSONArray._array()
- JSONArray._string()
- JSONArray._int()
- JSONArray._long()
- JSONArray._float()
- JSONArray._double()
- Date 대한 함수들 모음
Ch.date.offset():Int
- Date의 offset을 리턴함
- Math 대한 함수들 모음
Ch.math.rand(start:Int, end:Int):Int
Ch.math.rand(start:Double, end:Double):Int
- start(포함)~end(포함)까지의 랜덤 수를 리턴함
val s = Ch.math.rand(1.5, 2.0)
val a = Ch.math.rand(0.2, 0.5)
val r = Ch.math.rand(-37.0, 37.0)
fields(cls: KClass<*>):Item
_try(block:()->T)
- try catch 함수
- inline함수
_try{Ch.model.jsonToModel(json, arg[0])}?.let{
res.result = it
return@ch true
}
_try{JSONObject("$v")}?.let{
res.extra[EXTRA_JSON] = it
res.result = it
true
}
_try{Ch.sql.db("seller")}?.let {
val v = it.select("se_get") { User() }
if (v.isNotEmpty()) {
App.user = v[0]
...
}
}
_requiredNotNull(vararg v:Any?, block:()->Unit)