com.basistech.rosette.apimodel.TransliterationOptions 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;
/**
* Options for transliteration requests
*/
@JacksonMixin
public final class TransliterationOptions extends Options {
/**
*/
private final Boolean reversed;
@SuppressWarnings("all")
TransliterationOptions(final Boolean reversed) {
this.reversed = reversed;
}
@SuppressWarnings("all")
public static class TransliterationOptionsBuilder {
@SuppressWarnings("all")
private Boolean reversed;
@SuppressWarnings("all")
TransliterationOptionsBuilder() {
}
/**
* @return {@code this}.
*/
@SuppressWarnings("all")
public TransliterationOptions.TransliterationOptionsBuilder reversed(final Boolean reversed) {
this.reversed = reversed;
return this;
}
@SuppressWarnings("all")
public TransliterationOptions build() {
return new TransliterationOptions(this.reversed);
}
@Override
@SuppressWarnings("all")
public String toString() {
return "TransliterationOptions.TransliterationOptionsBuilder(reversed=" + this.reversed + ")";
}
}
@SuppressWarnings("all")
public static TransliterationOptions.TransliterationOptionsBuilder builder() {
return new TransliterationOptions.TransliterationOptionsBuilder();
}
/**
* @return whether to do reverse transliteration
*/
@SuppressWarnings("all")
public Boolean getReversed() {
return this.reversed;
}
@Override
@SuppressWarnings("all")
public boolean equals(final Object o) {
if (o == this) return true;
if (!(o instanceof TransliterationOptions)) return false;
final TransliterationOptions other = (TransliterationOptions) o;
if (!other.canEqual((Object) this)) return false;
if (!super.equals(o)) return false;
final Object this$reversed = this.getReversed();
final Object other$reversed = other.getReversed();
if (this$reversed == null ? other$reversed != null : !this$reversed.equals(other$reversed)) return false;
return true;
}
@SuppressWarnings("all")
protected boolean canEqual(final Object other) {
return other instanceof TransliterationOptions;
}
@Override
@SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = super.hashCode();
final Object $reversed = this.getReversed();
result = result * PRIME + ($reversed == null ? 43 : $reversed.hashCode());
return result;
}
@Override
@SuppressWarnings("all")
public String toString() {
return "TransliterationOptions(reversed=" + this.getReversed() + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy