com.yahoo.document.DocumentRemove Maven / Gradle / Ivy
The newest version!
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.document;
import java.util.Objects;
/**
* @author baldersheim
*/
public class DocumentRemove extends DocumentOperation {
private final DocumentId docId;
public DocumentRemove(DocumentId docId) { this.docId = docId; }
@Override
public DocumentId getId() { return docId; }
@Override
public String toString() {
return "DocumentRemove '" + docId + "'";
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if ( ! (o instanceof DocumentRemove)) return false;
DocumentRemove that = (DocumentRemove) o;
if ( ! docId.equals(that.docId)) return false;
if ( ! Objects.equals(getCondition(), that.getCondition())) return false;
return true;
}
@Override
public int hashCode() {
return docId.hashCode();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy