com.basistech.rosette.apimodel.RelationshipsOptions 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;
/**
* Relationship extraction options
*/
@JacksonMixin
public final class RelationshipsOptions extends Options {
/**
*/
private final AccuracyMode accuracyMode;
/**
*/
private final Boolean discoveryMode;
@SuppressWarnings("all")
RelationshipsOptions(final AccuracyMode accuracyMode, final Boolean discoveryMode) {
this.accuracyMode = accuracyMode;
this.discoveryMode = discoveryMode;
}
@SuppressWarnings("all")
public static class RelationshipsOptionsBuilder {
@SuppressWarnings("all")
private AccuracyMode accuracyMode;
@SuppressWarnings("all")
private Boolean discoveryMode;
@SuppressWarnings("all")
RelationshipsOptionsBuilder() {
}
/**
* @return {@code this}.
*/
@SuppressWarnings("all")
public RelationshipsOptions.RelationshipsOptionsBuilder accuracyMode(final AccuracyMode accuracyMode) {
this.accuracyMode = accuracyMode;
return this;
}
/**
* @return {@code this}.
*/
@SuppressWarnings("all")
public RelationshipsOptions.RelationshipsOptionsBuilder discoveryMode(final Boolean discoveryMode) {
this.discoveryMode = discoveryMode;
return this;
}
@SuppressWarnings("all")
public RelationshipsOptions build() {
return new RelationshipsOptions(this.accuracyMode, this.discoveryMode);
}
@Override
@SuppressWarnings("all")
public String toString() {
return "RelationshipsOptions.RelationshipsOptionsBuilder(accuracyMode=" + this.accuracyMode + ", discoveryMode=" + this.discoveryMode + ")";
}
}
@SuppressWarnings("all")
public static RelationshipsOptions.RelationshipsOptionsBuilder builder() {
return new RelationshipsOptions.RelationshipsOptionsBuilder();
}
/**
* @return the accuracyMode to use for relationship extraction
*/
@SuppressWarnings("all")
public AccuracyMode getAccuracyMode() {
return this.accuracyMode;
}
/**
* @return the discoveryMode flag
*/
@SuppressWarnings("all")
public Boolean getDiscoveryMode() {
return this.discoveryMode;
}
@Override
@SuppressWarnings("all")
public boolean equals(final Object o) {
if (o == this) return true;
if (!(o instanceof RelationshipsOptions)) return false;
final RelationshipsOptions other = (RelationshipsOptions) o;
if (!other.canEqual((Object) this)) return false;
if (!super.equals(o)) return false;
final Object this$discoveryMode = this.getDiscoveryMode();
final Object other$discoveryMode = other.getDiscoveryMode();
if (this$discoveryMode == null ? other$discoveryMode != null : !this$discoveryMode.equals(other$discoveryMode)) return false;
final Object this$accuracyMode = this.getAccuracyMode();
final Object other$accuracyMode = other.getAccuracyMode();
if (this$accuracyMode == null ? other$accuracyMode != null : !this$accuracyMode.equals(other$accuracyMode)) return false;
return true;
}
@SuppressWarnings("all")
protected boolean canEqual(final Object other) {
return other instanceof RelationshipsOptions;
}
@Override
@SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = super.hashCode();
final Object $discoveryMode = this.getDiscoveryMode();
result = result * PRIME + ($discoveryMode == null ? 43 : $discoveryMode.hashCode());
final Object $accuracyMode = this.getAccuracyMode();
result = result * PRIME + ($accuracyMode == null ? 43 : $accuracyMode.hashCode());
return result;
}
@Override
@SuppressWarnings("all")
public String toString() {
return "RelationshipsOptions(accuracyMode=" + this.getAccuracyMode() + ", discoveryMode=" + this.getDiscoveryMode() + ")";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy