mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-09-15 21:39:24 +00:00
getAll
This commit is contained in:
@@ -26,6 +26,8 @@ class ReadMapCRUDRepo<ObjectType, IdType>(
|
||||
|
||||
override suspend fun contains(id: IdType): Boolean = map.containsKey(id)
|
||||
|
||||
override suspend fun getAll(): Map<IdType, ObjectType> = map.toMap()
|
||||
|
||||
override suspend fun count(): Long = map.size.toLong()
|
||||
}
|
||||
|
||||
|
@@ -51,6 +51,8 @@ class ReadMapKeyValueRepo<Key, Value>(
|
||||
}
|
||||
}
|
||||
|
||||
override suspend fun getAll(): Map<Key, Value> = map.toMap()
|
||||
|
||||
override suspend fun contains(key: Key): Boolean = map.containsKey(key)
|
||||
|
||||
override suspend fun count(): Long = map.size.toLong()
|
||||
|
Reference in New Issue
Block a user