![JAR search and dependency download from the Maven repository](/logo.png)
com.powsybl.afs.ext.base.events.CaseImported Maven / Gradle / Ivy
/**
* Copyright (c) 2018, RTE (http://www.rte-france.com)
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package com.powsybl.afs.ext.base.events;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* @author Chamseddine Benhamed
*/
public class CaseImported extends BusinessEvent {
public static final String TYPENAME = "CASE_IMPORTED";
@JsonCreator
public CaseImported(@JsonProperty("id") String id, @JsonProperty("parentId") String parentId,
@JsonProperty("path") String path) {
super(id, parentId, path, TYPENAME);
}
@Override
public boolean equals(Object obj) {
if (obj instanceof CaseImported) {
CaseImported other = (CaseImported) obj;
return id.equals(other.id) && Objects.equals(parentId, other.parentId) && path.equals(other.path);
}
return false;
}
@Override
public int hashCode() {
return Objects.hash(id, parentId);
}
@Override
public String toString() {
return "CaseImported(id=" + id + ", parentId=" + parentId + ", path=" + path + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy