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

com.eventstore.dbclient.DeleteResult Maven / Gradle / Ivy

package com.eventstore.dbclient;

import javax.validation.constraints.NotNull;
import java.util.Objects;

public class DeleteResult {
    private final Position logPosition;

    public DeleteResult(@NotNull Position logPosition) {
        this.logPosition = logPosition;
    }

    public Position getLogPosition() {
        return logPosition;
    }

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

    @Override
    public int hashCode() {
        return Objects.hash(logPosition);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy