toggle menu
piper-kt
9.3.0
common
switch theme
search in API
commons
/
piperkt.common.mocks
/
InMemoryRepository
In
Memory
Repository
open
class
InMemoryRepository
<
I
:
EntityId
<
*
>
,
A
:
AggregateRoot
<
I
>
>
(
var
entities
:
Map
<
I
,
A
>
=
mapOf()
)
:
Repository
<
I
,
A
>
Members
Constructors
In
Memory
Repository
Link copied to clipboard
constructor
(
entities
:
Map
<
I
,
A
>
=
mapOf()
)
Properties
entities
Link copied to clipboard
var
entities
:
Map
<
I
,
A
>
Functions
clear
Link copied to clipboard
fun
clear
(
)
delete
All
Link copied to clipboard
open
override
fun
deleteAll
(
)
delete
By
Id
Link copied to clipboard
open
override
fun
deleteById
(
id
:
I
)
:
A
?
find
By
Id
Link copied to clipboard
open
override
fun
findById
(
id
:
I
)
:
A
?
save
Link copied to clipboard
open
override
fun
save
(
entity
:
A
)
update
Link copied to clipboard
open
override
fun
update
(
entity
:
A
)