com.github.nagyesta.lowkeyvault.service.common.VersionedEntityMultiMap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lowkey-vault-app Show documentation
Show all versions of lowkey-vault-app Show documentation
Assembled application of Lowkey Vault.
The newest version!
package com.github.nagyesta.lowkeyvault.service.common;
import com.github.nagyesta.lowkeyvault.service.EntityId;
import lombok.NonNull;
import java.util.function.Consumer;
import java.util.function.Function;
public interface VersionedEntityMultiMap, ME extends RE>
extends ReadOnlyVersionedEntityMultiMap {
ME getEntity(V entityId);
void put(V entityId, ME entity);
boolean isDeleted();
void moveTo(K entityId, VersionedEntityMultiMap destination, Function applyToAll);
void purgeExpired();
void purgeDeleted(K entityId);
void forEachEntity(@NonNull Consumer entityConsumer);
}