com.basistech.rosette.apimodel.TransliterationResponse 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;
/**
* Simple API response data model for transliteration.
*/
@JacksonMixin
public class TransliterationResponse extends Response {
/**
*/
private final String transliteration;
@SuppressWarnings("all")
TransliterationResponse(final String transliteration) {
this.transliteration = transliteration;
}
@SuppressWarnings("all")
public static class TransliterationResponseBuilder {
@SuppressWarnings("all")
private String transliteration;
@SuppressWarnings("all")
TransliterationResponseBuilder() {
}
/**
* @return {@code this}.
*/
@SuppressWarnings("all")
public TransliterationResponse.TransliterationResponseBuilder transliteration(final String transliteration) {
this.transliteration = transliteration;
return this;
}
@SuppressWarnings("all")
public TransliterationResponse build() {
return new TransliterationResponse(this.transliteration);
}
@Override
@SuppressWarnings("all")
public String toString() {
return "TransliterationResponse.TransliterationResponseBuilder(transliteration=" + this.transliteration + ")";
}
}
@SuppressWarnings("all")
public static TransliterationResponse.TransliterationResponseBuilder builder() {
return new TransliterationResponse.TransliterationResponseBuilder();
}
/**
* @return the transliteration
*/
@SuppressWarnings("all")
public String getTransliteration() {
return this.transliteration;
}
@Override
@SuppressWarnings("all")
public boolean equals(final Object o) {
if (o == this) return true;
if (!(o instanceof TransliterationResponse)) return false;
final TransliterationResponse other = (TransliterationResponse) o;
if (!other.canEqual((Object) this)) return false;
if (!super.equals(o)) return false;
final Object this$transliteration = this.getTransliteration();
final Object other$transliteration = other.getTransliteration();
if (this$transliteration == null ? other$transliteration != null : !this$transliteration.equals(other$transliteration)) return false;
return true;
}
@SuppressWarnings("all")
protected boolean canEqual(final Object other) {
return other instanceof TransliterationResponse;
}
@Override
@SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = super.hashCode();
final Object $transliteration = this.getTransliteration();
result = result * PRIME + ($transliteration == null ? 43 : $transliteration.hashCode());
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy