All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.expansion.ExpansionPathBase Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
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