{"id":29278017,"url":"https://github.com/ltttttttttttt/datastructure","last_synced_at":"2025-07-05T10:04:15.542Z","repository":{"id":60970863,"uuid":"547028121","full_name":"ltttttttttttt/DataStructure","owner":"ltttttttttttt","description":"Common user-defined data structures.","archived":false,"fork":false,"pushed_at":"2024-06-08T10:00:45.000Z","size":203,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-08T16:58:31.622Z","etag":null,"topics":["data-structures","jvm","kmm","kmp","kotlin"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ltttttttttttt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2022-10-07T03:00:00.000Z","updated_at":"2024-06-08T10:30:51.000Z","dependencies_parsed_at":"2024-06-06T16:40:59.586Z","dependency_job_id":null,"html_url":"https://github.com/ltttttttttttt/DataStructure","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/ltttttttttttt/DataStructure","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ltttttttttttt%2FDataStructure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ltttttttttttt%2FDataStructure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ltttttttttttt%2FDataStructure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ltttttttttttt%2FDataStructure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ltttttttttttt","download_url":"https://codeload.github.com/ltttttttttttt/DataStructure/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ltttttttttttt%2FDataStructure/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263723228,"owners_count":23501500,"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","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":["data-structures","jvm","kmm","kmp","kotlin"],"created_at":"2025-07-05T10:04:14.389Z","updated_at":"2025-07-05T10:04:15.535Z","avatar_url":"https://github.com/ltttttttttttt.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DataStructure\n\nCommon user-defined data structures(常用的自定义的数据结构)\n\nApplicable Kotlin all target(适用于kotlin全平台)\n\n\u003cimg src=\"https://img.shields.io/badge/Kotlin-Multiplatform-%237f52ff?logo=kotlin\"\u003e\n\n## Add to your project(如何添加到你的项目中)\n\nYour app dir, build.gradle.kts add:(在你app目录的build.gradle.kts中添加)\n\nversion = [![](https://img.shields.io/maven-central/v/io.github.ltttttttttttt/DataStructure)](https://repo1.maven.org/maven2/io/github/ltttttttttttt/DataStructure/)\n\n```kotlin\ndependencies {\n    ...\n    implementation(\"io.github.ltttttttttttt:DataStructure:$version\")//this, such as 1.0.12\n}\n```\n\n## 可自动扩容的基础数据数组,参考ArrayList\u003cT\u003e,但使用不会自动拆装箱,提升性能\n\n```kotlin\nIntArrayList\nLongArrayList\nFloatArrayList\nDoubleArrayList\nBooleanArrayList\n```\n\n## LRU算法的map\n\n```kotlin\nLruMap\nLruMapWithGetFirst\n```\n\n## 排序且去重的List\n\n```kotlin\nSortedAndNotRepeatList\n```\n\n## 会根据倒计时自动移除数据的map\n\n```kotlin\nDownTimeMap\n```\n\n## 在服务器中有时效性的数据内存缓存\n\n```kotlin\nTimeCacheData\nTimeCacheDataMap\n```\n\n## kotlin的Pair数量不够用怎么办?用下面的\n\n```kotlin\ntypealias Values2 = Pair\ntypealias Values3 = Triple\nValues4\nValues5\nValuesX\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fltttttttttttt%2Fdatastructure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fltttttttttttt%2Fdatastructure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fltttttttttttt%2Fdatastructure/lists"}