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

uk.gov.service.payments.commons.api.validation.PatchPathOperation Maven / Gradle / Ivy

There is a newer version: 1.0.20241120144934
Show newest version
package uk.gov.service.payments.commons.api.validation;

import uk.gov.service.payments.commons.model.jsonpatch.JsonPatchOp;

import java.util.Objects;

public class PatchPathOperation {
    private final String path;
    private final JsonPatchOp operation;

    public PatchPathOperation(String path, JsonPatchOp operation) {
        this.path = path;
        this.operation = operation;
    }

    public String getPath() {
        return path;
    }

    public JsonPatchOp getOperation() {
        return operation;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PatchPathOperation that = (PatchPathOperation) o;
        return Objects.equals(path, that.path) && Objects.equals(operation, that.operation);
    }

    @Override
    public int hashCode() {
        return Objects.hash(path, operation);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy