在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):Carleslc/kotlin-extensions开源软件地址(OpenSource Url):https://github.com/Carleslc/kotlin-extensions开源编程语言(OpenSource Language):Kotlin 100.0%开源软件介绍(OpenSource Introduction):KotlinExtensionsUtility extensions, properties and useful methods to boost your programming with Kotlin. How to installMavenAdd the following repository to your
Add the following dependencies to your
If you need more powerful extensions and tools check the optional libraries section. GradleAdd the following repository to your
Add the following dependency to your
If you need more powerful extensions and tools check the optional libraries section. Manual
If you wish, you can use these steps to add the dependency using Maven or Gradle without accessing to the Otherwise you will need to add the If you need more powerful extensions and tools check the optional libraries section. How to useIn order to use any of the extensions or methods of KotlinExtensions you only need to import them. Import a single extension
Import all extensions of a package
Packages availableArrays
Extensions for arrays, a syntactic-sugar way to create literal arrays like Bytes
Extensions for memory size conversions (from bits to pebibytes and petabytes). Inspired from ktunits library. Collections
Extensions for collections, sintactic-sugar for list and set literals with Conversions
Extensions for conversions between basic types. HTML
Extensions to generate HTML in a more readable way. Map
Extensions for maps and sintactic-sugar for Map literals with Number
Extensions for numbers and math operations. Strings
Extensions for strings.
Time
Extensions for timing, format and manage time or dates easily. Inspired from kxdate and khronos libraries. Tuples
Extensions for pairs and triples. Preconditions
Extensions to ensure preconditions easily. Standard
General purpose extensions and global methods that do not match any other package category (e.g. looping with ContributeDo you want to contribute to this project? Great! Simply fork and do a pull request. Then if it makes sense I will merge it creating a new version of this project. Follow this rules when doing a pull request in order to be accepted:
Optional LibrariesArrowThis library adds functional stuff to boost your programming with Kotlin. It is a perfect library to use together with KotlinExtensions.
We've already included GuavaThis library from Google includes a lot of useful classes and methods to extend the language. It is written in Java but it can be used from Kotlin with no problem. It is already included with version AnkoIf you need extensions and useful tools for Android this library is a must for your Android development. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论