Interface MemoizedUuidMapper
- All Superinterfaces:
DeterministicUuidMapper
,UuidMapper
UuidMapper
that memoizes all its UuidMapper.map(String)
calls.
This means that calling UuidMapper.map(String)
multiple times with the same argument will return the same UUID.- Author:
- krylov
-
Method Summary
Modifier and TypeMethodDescriptionstatic MemoizedUuidMapper
memoize
(UuidMapper delegate) static MemoizedUuidMapper
toMap()
Methods inherited from interface ru.cg.webbpm.studio.subsystems.page_designer.serialization.api.beans.uuid.UuidMapper
map
-
Method Details
-
memoize
- Parameters:
delegate
- delegate mapper- Returns:
- a mapper memoizing all map calls to the delegate mapper
-
memoizedRandom
- Returns:
- mapper that returns a random UUID and memoizes all returtned UUIDs.
This means that calling
UuidMapper.map(String)
multiple times with the same argument will return the same UUID. See alsoMemoizedUuidMapper
-
toMap
- Returns:
- read only mapping representing all
UuidMapper.map(String)
calls and corresponding results SubsequentUuidMapper.map(String)
calls are reflected in the map returned
-