本文整理了Java中org.guvnor.common.services.project.model.Module.equals()
方法的一些代码示例,展示了Module.equals()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Module.equals()
方法的具体详情如下:
包路径:org.guvnor.common.services.project.model.Module
类名称:Module
方法名:equals
暂无
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-datasource-mgmt-client
private boolean hasChanged(final Module module) {
return activeModule != null ? !activeModule.equals(module) : module != null;
}
}
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-data-modeller-api
public boolean isFrom(Module module) {
return this.currentModule != null && this.currentModule.equals(module);
}
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-project-explorer-client
/**
* A convenience method to compare two Modules avoiding cluttering code with null checks.
* @param module
* @param activeModule
* @return
*/
public static boolean hasModuleChanged(final Module module,
final Module activeModule) {
if (module == null && activeModule != null) {
return true;
}
if (module != null && activeModule == null) {
return true;
}
if (module == null && activeModule == null) {
return false;
}
return !module.equals(activeModule);
}
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-project-explorer-backend
public boolean deleteModule(final Module module) {
boolean changed = false;
if (lastPackage != null && lastPackage.getModule().equals(module)) {
lastPackage = null;
changed = true;
}
if (lastFolderItem != null && lastFolderItem.getModule().equals(module)) {
lastFolderItem = null;
changed = true;
}
return changed;
}
代码示例来源:origin: org.kie.workbench.services/kie-wb-common-services-backend
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
LocalBuildRequest that = (LocalBuildRequest) o;
if (suppressHandlers != that.suppressHandlers) {
return false;
}
if (module != null ? !module.equals(that.module) : that.module != null) {
return false;
}
if (buildType != that.buildType) {
return false;
}
if (resource != null ? !resource.equals(that.resource) : that.resource != null) {
return false;
}
if (resourceChanges != null ? !resourceChanges.equals(that.resourceChanges) : that.resourceChanges != null) {
return false;
}
return deploymentType == that.deploymentType;
}
代码示例来源:origin: org.uberfire/uberfire-project-api
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
WorkspaceProject workspaceProject = (WorkspaceProject) o;
if (requiresRefresh != workspaceProject.requiresRefresh) {
return false;
}
if (!repository.equals(workspaceProject.repository)) {
return false;
}
if (!branch.equals(workspaceProject.branch)) {
return false;
}
if (mainModule != null ? !mainModule.equals(workspaceProject.mainModule) : workspaceProject.mainModule != null) {
return false;
}
return organizationalUnit.equals(workspaceProject.organizationalUnit);
}
代码示例来源:origin: kiegroup/appformer
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
WorkspaceProject workspaceProject = (WorkspaceProject) o;
if (requiresRefresh != workspaceProject.requiresRefresh) {
return false;
}
if (!repository.equals(workspaceProject.repository)) {
return false;
}
if (!branch.equals(workspaceProject.branch)) {
return false;
}
if (mainModule != null ? !mainModule.equals(workspaceProject.mainModule) : workspaceProject.mainModule != null) {
return false;
}
return organizationalUnit.equals(workspaceProject.organizationalUnit);
}
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-datasource-mgmt-client
@Override
protected boolean refreshOnDataSourceEvent(BaseDataSourceEvent event) {
return !event.isGlobal() && activeModule != null && activeModule.equals(event.getModule());
}
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-datasource-mgmt-client
@Override
protected boolean refreshOnDriverEvent(BaseDriverEvent event) {
return !event.isGlobal() && activeModule != null && activeModule.equals(event.getModule());
}
代码示例来源:origin: org.kie.workbench.screens/kie-wb-common-project-explorer-backend
&& !query.getBranch().getName().equals(lastContent.getLastPackage().getBranch())
|| query.getModule() != null
&& !query.getModule().equals(lastContent.getLastPackage().getModule())) {
} else if (
query.getRepository() != null && !query.getRepository().equals(lastContent.getLastFolderItem().getRepository()) ||
query.getModule() != null && !query.getModule().equals(lastContent.getLastFolderItem().getModule())) {
内容来源于网络,如有侵权,请联系作者删除!