public interface EntityImportMapping<K>
Modifier and Type | Method and Description |
---|---|
void |
add(String exportId,
K localId)
Adds a mapping between the
exportId and localId . |
void |
clear()
Remove all entries from this mapping
|
Optional<String> |
getExportId(K localId)
Given a
localId , return its corresponding exportId . |
Optional<K> |
getLocalId(String exportId)
Given an
exportId , return its corresponding localId . |
void add(@Nonnull String exportId, @Nonnull K localId)
exportId
and localId
.exportId
- The ID that was generated during the exportlocalId
- The local ID for the entity on this instanceIllegalArgumentException
- if either the exportId
or the localId
have already
been mapped previously, either to the same value or a different valuevoid clear()
@Nonnull Optional<String> getExportId(@Nonnull K localId)
localId
, return its corresponding exportId
.localId
- The local ID for the entity on this instanceOptional.empty()
.Copyright © 2024 Atlassian. All rights reserved.