com.basistech.rosette.apimodel.SyntaxDependenciesResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rosette-api-all Show documentation
Show all versions of rosette-api-all Show documentation
Babel Street Analytics API all modules combined
The newest version!
// Generated by delombok at Fri Nov 15 11:56:46 CST 2024
/*
* Copyright 2017 Basis Technology Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.basistech.rosette.apimodel;
import com.basistech.rosette.annotations.JacksonMixin;
import java.util.List;
/**
* All syntactical dependencies extracted from the document
*/
@JacksonMixin
public class SyntaxDependenciesResponse extends Response {
/**
*/
private final List sentences;
/**
*/
private final List tokens;
@SuppressWarnings("all")
SyntaxDependenciesResponse(final List sentences, final List tokens) {
this.sentences = sentences;
this.tokens = tokens;
}
@SuppressWarnings("all")
public static class SyntaxDependenciesResponseBuilder {
@SuppressWarnings("all")
private List sentences;
@SuppressWarnings("all")
private List tokens;
@SuppressWarnings("all")
SyntaxDependenciesResponseBuilder() {
}
/**
* @return {@code this}.
*/
@SuppressWarnings("all")
public SyntaxDependenciesResponse.SyntaxDependenciesResponseBuilder sentences(final List sentences) {
this.sentences = sentences;
return this;
}
/**
* @return {@code this}.
*/
@SuppressWarnings("all")
public SyntaxDependenciesResponse.SyntaxDependenciesResponseBuilder tokens(final List tokens) {
this.tokens = tokens;
return this;
}
@SuppressWarnings("all")
public SyntaxDependenciesResponse build() {
return new SyntaxDependenciesResponse(this.sentences, this.tokens);
}
@Override
@SuppressWarnings("all")
public String toString() {
return "SyntaxDependenciesResponse.SyntaxDependenciesResponseBuilder(sentences=" + this.sentences + ", tokens=" + this.tokens + ")";
}
}
@SuppressWarnings("all")
public static SyntaxDependenciesResponse.SyntaxDependenciesResponseBuilder builder() {
return new SyntaxDependenciesResponse.SyntaxDependenciesResponseBuilder();
}
/**
* @return list of sentences with syntactical dependencies
*/
@SuppressWarnings("all")
public List getSentences() {
return this.sentences;
}
/**
* @return list of tokens in the document
*/
@SuppressWarnings("all")
public List getTokens() {
return this.tokens;
}
@Override
@SuppressWarnings("all")
public boolean equals(final Object o) {
if (o == this) return true;
if (!(o instanceof SyntaxDependenciesResponse)) return false;
final SyntaxDependenciesResponse other = (SyntaxDependenciesResponse) o;
if (!other.canEqual((Object) this)) return false;
if (!super.equals(o)) return false;
final Object this$sentences = this.getSentences();
final Object other$sentences = other.getSentences();
if (this$sentences == null ? other$sentences != null : !this$sentences.equals(other$sentences)) return false;
final Object this$tokens = this.getTokens();
final Object other$tokens = other.getTokens();
if (this$tokens == null ? other$tokens != null : !this$tokens.equals(other$tokens)) return false;
return true;
}
@SuppressWarnings("all")
protected boolean canEqual(final Object other) {
return other instanceof SyntaxDependenciesResponse;
}
@Override
@SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = super.hashCode();
final Object $sentences = this.getSentences();
result = result * PRIME + ($sentences == null ? 43 : $sentences.hashCode());
final Object $tokens = this.getTokens();
result = result * PRIME + ($tokens == null ? 43 : $tokens.hashCode());
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy