All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.nagyesta.lowkeyvault.service.common.VersionedEntityMultiMap Maven / Gradle / Ivy

There is a newer version: 2.5.81
Show 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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy