{"id":28028899,"url":"https://github.com/itvincent-git/stripe","last_synced_at":"2025-09-11T06:34:47.632Z","repository":{"id":142298489,"uuid":"154146406","full_name":"itvincent-git/stripe","owner":"itvincent-git","description":"Kotlin-ex / Kotlin extension. Include Coroutines, Collections, Lifecycle, NullPointer, Task, Exception","archived":false,"fork":false,"pushed_at":"2020-01-10T09:33:53.000Z","size":200,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-11T07:34:38.280Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itvincent-git.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-10-22T13:12:10.000Z","updated_at":"2023-11-16T03:33:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"eccfd71a-1df8-413d-ab02-ee79f9516aac","html_url":"https://github.com/itvincent-git/stripe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/itvincent-git/stripe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itvincent-git%2Fstripe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itvincent-git%2Fstripe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itvincent-git%2Fstripe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itvincent-git%2Fstripe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itvincent-git","download_url":"https://codeload.github.com/itvincent-git/stripe/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itvincent-git%2Fstripe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274589627,"owners_count":25312971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-11T07:33:34.484Z","updated_at":"2025-09-11T06:34:47.617Z","avatar_url":"https://github.com/itvincent-git.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kotlin 扩展方法\n\n## CollectionsEx.kt\n- `random()`: 从一个List中随机取1个数据\n\n## NullPointerEx.kt\n- `notNullElse()`: 判断非null执行第一个block,it为对象的非null类型;为null则执行第二个block\n- `allNotNull()`: 判断2个变量都非空执行block, 参数a, b为对象的非null类型\n- `allNotNullElse()`: 判断3个变量都非空执行第一个block, 参数a, b, c为对象的非null类型；为null则执行第二个block\n\n\n## TaskEx.kt\n- `runInMainThread()`: 在main线程执行，可延迟执行，带生命周期管理\n\n## TryEx.kt\n- `tryCatch()`: 捕获block的异常，然后返回block的值，默认异常是打印logcat日志\n- `tryTimes()`: try catch运行block，如果有异常则再运行，直接超时times的次数","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitvincent-git%2Fstripe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitvincent-git%2Fstripe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitvincent-git%2Fstripe/lists"}