io.sphere.sdk.expansion.ExpansionPathBase Maven / Gradle / Ivy
package io.sphere.sdk.expansion;
import io.sphere.sdk.models.Base;
abstract class ExpansionPathBase extends Base implements ExpansionPath {
@Override
public final boolean equals(final Object o) {
return equals(this, o);
}
public static boolean equals(final ExpansionPath expansionPath, final Object o) {
return o != null && (o instanceof ExpansionPath) && ((ExpansionPath) o).toSphereExpand().equals(expansionPath.toSphereExpand());
}
@Override
public final int hashCode() {
return toSphereExpand().hashCode();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy