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

io.sphere.client.shop.model.LineItemsTargetPredicate Maven / Gradle / Ivy

There is a newer version: 0.72.1
Show newest version
package io.sphere.client.shop.model;

import org.codehaus.jackson.annotate.JsonProperty;

public class LineItemsTargetPredicate extends CartDiscountTargetPredicate {
    private final String predicate;

    public LineItemsTargetPredicate(@JsonProperty("predicate") final String predicate) {
        this.predicate = predicate;
    }

    public String getPredicate() {
        return predicate;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        LineItemsTargetPredicate that = (LineItemsTargetPredicate) o;

        if (predicate != null ? !predicate.equals(that.predicate) : that.predicate != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return predicate != null ? predicate.hashCode() : 0;
    }

    @Override
    public String toString() {
        return "LineItemsTargetPredicate{" +
                "predicate='" + predicate + '\'' +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy