@Override public int hashCode() { int hash = 7; hash = 31 * hash + Objects.hashCode(path); hash = 31 * hash + Objects.hashCode(name); hash = 31 * hash + Objects.hashCode(type); hash = 31 * hash + Objects.hashCode(description); hash = 31 * hash + Objects.hashCode(source); hash = 31 * hash + getMixins().hashCode(); hash = 31 * hash + getAttributes().hashCode(); return hash; }
final List<Promise<Project>> promises = new ArrayList<>(); for (final ProjectConfigImpl projectConfig : factory.getWorkspace().getProjects()) { if (projectsToImport.contains(projectConfig.getName())) { promises.add( startImport(Path.valueOf(projectConfig.getPath()), projectConfig.getSource()) .thenPromise( new Function<Project, Promise<Project>>() {
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof ProjectConfigImpl)) { return false; } final ProjectConfigImpl that = (ProjectConfigImpl) obj; return Objects.equals(path, that.path) && Objects.equals(name, that.name) && Objects.equals(type, that.type) && Objects.equals(description, that.description) && Objects.equals(source, that.source) && getMixins().equals(that.getMixins()) && getAttributes().equals(that.getAttributes()); }