io.sphere.sdk.cartdiscounts.CartDiscountPredicateImpl Maven / Gradle / Ivy
package io.sphere.sdk.cartdiscounts;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.sphere.sdk.models.Base;
final class CartDiscountPredicateImpl extends Base implements CartDiscountPredicate {
private final String predicate;
@JsonCreator
public CartDiscountPredicateImpl(final String predicate) {
this.predicate = predicate;
}
@Override
public String toSphereCartPredicate() {
return predicate;
}
@Override
public final boolean equals(Object o) {
return o != null && o instanceof CartDiscountPredicate && toSphereCartPredicate().equals(((CartDiscountPredicate) o).toSphereCartPredicate());
}
@Override
public final int hashCode() {
return toSphereCartPredicate().hashCode();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy