com.basistech.rosette.apimodel.MorphologyResponse 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;
/**
* Simple API response data model returned by MorphologyRequest
*/
@JacksonMixin
public class MorphologyResponse extends Response {
/**
*/
private final List tokens;
/**
*/
private final List posTags;
/**
*/
private final List lemmas;
/**
*/
private final List> compoundComponents;
/**
*/
private final List> hanReadings;
@SuppressWarnings("all")
MorphologyResponse(final List tokens, final List posTags, final List lemmas, final List> compoundComponents, final List> hanReadings) {
this.tokens = tokens;
this.posTags = posTags;
this.lemmas = lemmas;
this.compoundComponents = compoundComponents;
this.hanReadings = hanReadings;
}
@SuppressWarnings("all")
public static class MorphologyResponseBuilder {
@SuppressWarnings("all")
private List tokens;
@SuppressWarnings("all")
private List posTags;
@SuppressWarnings("all")
private List lemmas;
@SuppressWarnings("all")
private List> compoundComponents;
@SuppressWarnings("all")
private List> hanReadings;
@SuppressWarnings("all")
MorphologyResponseBuilder() {
}
/**
* @return {@code this}.
*/
@SuppressWarnings("all")
public MorphologyResponse.MorphologyResponseBuilder tokens(final List tokens) {
this.tokens = tokens;
return this;
}
/**
* @return {@code this}.
*/
@SuppressWarnings("all")
public MorphologyResponse.MorphologyResponseBuilder posTags(final List posTags) {
this.posTags = posTags;
return this;
}
/**
* @return {@code this}.
*/
@SuppressWarnings("all")
public MorphologyResponse.MorphologyResponseBuilder lemmas(final List lemmas) {
this.lemmas = lemmas;
return this;
}
/**
* @return {@code this}.
*/
@SuppressWarnings("all")
public MorphologyResponse.MorphologyResponseBuilder compoundComponents(final List> compoundComponents) {
this.compoundComponents = compoundComponents;
return this;
}
/**
* @return {@code this}.
*/
@SuppressWarnings("all")
public MorphologyResponse.MorphologyResponseBuilder hanReadings(final List> hanReadings) {
this.hanReadings = hanReadings;
return this;
}
@SuppressWarnings("all")
public MorphologyResponse build() {
return new MorphologyResponse(this.tokens, this.posTags, this.lemmas, this.compoundComponents, this.hanReadings);
}
@Override
@SuppressWarnings("all")
public String toString() {
return "MorphologyResponse.MorphologyResponseBuilder(tokens=" + this.tokens + ", posTags=" + this.posTags + ", lemmas=" + this.lemmas + ", compoundComponents=" + this.compoundComponents + ", hanReadings=" + this.hanReadings + ")";
}
}
@SuppressWarnings("all")
public static MorphologyResponse.MorphologyResponseBuilder builder() {
return new MorphologyResponse.MorphologyResponseBuilder();
}
/**
* @return list of tokens
*/
@SuppressWarnings("all")
public List getTokens() {
return this.tokens;
}
/**
* @return list of part of speech tags, 1:1 with tokens, or {@code null}
*/
@SuppressWarnings("all")
public List getPosTags() {
return this.posTags;
}
/**
* @return list of lemmas, 1:1 with tokens, or {@code null}
*/
@SuppressWarnings("all")
public List getLemmas() {
return this.lemmas;
}
/**
* @return list of compound components, 1:1 with tokens, or {@code null}
*/
@SuppressWarnings("all")
public List> getCompoundComponents() {
return this.compoundComponents;
}
/**
* @return list of Han readings, 1:1 with tokens, or {@code null}
*/
@SuppressWarnings("all")
public List> getHanReadings() {
return this.hanReadings;
}
@Override
@SuppressWarnings("all")
public boolean equals(final Object o) {
if (o == this) return true;
if (!(o instanceof MorphologyResponse)) return false;
final MorphologyResponse other = (MorphologyResponse) o;
if (!other.canEqual((Object) this)) return false;
if (!super.equals(o)) 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;
final Object this$posTags = this.getPosTags();
final Object other$posTags = other.getPosTags();
if (this$posTags == null ? other$posTags != null : !this$posTags.equals(other$posTags)) return false;
final Object this$lemmas = this.getLemmas();
final Object other$lemmas = other.getLemmas();
if (this$lemmas == null ? other$lemmas != null : !this$lemmas.equals(other$lemmas)) return false;
final Object this$compoundComponents = this.getCompoundComponents();
final Object other$compoundComponents = other.getCompoundComponents();
if (this$compoundComponents == null ? other$compoundComponents != null : !this$compoundComponents.equals(other$compoundComponents)) return false;
final Object this$hanReadings = this.getHanReadings();
final Object other$hanReadings = other.getHanReadings();
if (this$hanReadings == null ? other$hanReadings != null : !this$hanReadings.equals(other$hanReadings)) return false;
return true;
}
@SuppressWarnings("all")
protected boolean canEqual(final Object other) {
return other instanceof MorphologyResponse;
}
@Override
@SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = super.hashCode();
final Object $tokens = this.getTokens();
result = result * PRIME + ($tokens == null ? 43 : $tokens.hashCode());
final Object $posTags = this.getPosTags();
result = result * PRIME + ($posTags == null ? 43 : $posTags.hashCode());
final Object $lemmas = this.getLemmas();
result = result * PRIME + ($lemmas == null ? 43 : $lemmas.hashCode());
final Object $compoundComponents = this.getCompoundComponents();
result = result * PRIME + ($compoundComponents == null ? 43 : $compoundComponents.hashCode());
final Object $hanReadings = this.getHanReadings();
result = result * PRIME + ($hanReadings == null ? 43 : $hanReadings.hashCode());
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy