/DataStructure

Common user-defined data structures.

Primary LanguageKotlinApache License 2.0Apache-2.0

DataStructure

Common user-defined data structures(常用的自定义的数据结构)

Applicable Kotlin all target(适用于kotlin全平台)

Add to your project(如何添加到你的项目中)

Your app dir, build.gradle.kts add:(在你app目录的build.gradle.kts中添加)

version =

dependencies {
    ...
    implementation("io.github.ltttttttttttt:DataStructure:$version")//this, such as 1.0.12
}

可自动扩容的基础数据数组,参考ArrayList,但使用不会自动拆装箱,提升性能

IntArrayList
LongArrayList
FloatArrayList
DoubleArrayList
BooleanArrayList

LRU算法的map

LruMap
LruMapWithGetFirst

排序且去重的List

SortedAndNotRepeatList

会根据倒计时自动移除数据的map

DownTimeMap

在服务器中有时效性的数据内存缓存

TimeCacheData
TimeCacheDataMap

kotlin的Pair数量不够用怎么办?用下面的

typealias Values2 = Pair
typealias Values3 = Triple
Values4
Values5
ValuesX