com.northernwall.hadrian.db.inMemory.ModuleRefPredicate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Hadrian Show documentation
Show all versions of Hadrian Show documentation
Hadrian is a DevOps UI, Inventory, and Auditing system that plugs into other tools to execute actions.
package com.northernwall.hadrian.db.inMemory;
import com.northernwall.hadrian.domain.ModuleRef;
import java.util.function.Predicate;
public class ModuleRefPredicate implements Predicate {
private final String clientServiceId;
private final String clientModuleId;
private final String serverServiceId;
private final String serverModuleId;
public ModuleRefPredicate(String clientServiceId, String clientModuleId, String serverServiceId, String serverModuleId) {
this.clientServiceId = clientServiceId;
this.clientModuleId = clientModuleId;
this.serverServiceId = serverServiceId;
this.serverModuleId = serverModuleId;
}
@Override
public boolean test(ModuleRef t) {
return t.getClientServiceId().equals(clientServiceId)
&& t.getClientModuleId().equals(clientModuleId)
&& t.getServerServiceId().equals(serverServiceId)
&& t.getServerModuleId().equals(serverModuleId);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy