com.basistech.rosette.apimodel.Response 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 java.util.HashMap;
import java.util.Map;
/**
* Base class for all responses.
* In this version, they have nothing in common.
*/
public abstract class Response {
/**
*/
protected Map extendedInformation;
/**
* add more extended information to the response
* @param key
* @param value
*/
public void addExtendedInformation(String key, Object value) {
if (extendedInformation == null) {
extendedInformation = new HashMap<>();
}
extendedInformation.put(key, value);
}
/**
* @return extended information
*/
@SuppressWarnings("all")
public Map getExtendedInformation() {
return this.extendedInformation;
}
@Override
@SuppressWarnings("all")
public boolean equals(final Object o) {
if (o == this) return true;
if (!(o instanceof Response)) return false;
final Response other = (Response) o;
if (!other.canEqual((Object) this)) return false;
final Object this$extendedInformation = this.getExtendedInformation();
final Object other$extendedInformation = other.getExtendedInformation();
if (this$extendedInformation == null ? other$extendedInformation != null : !this$extendedInformation.equals(other$extendedInformation)) return false;
return true;
}
@SuppressWarnings("all")
protected boolean canEqual(final Object other) {
return other instanceof Response;
}
@Override
@SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
final Object $extendedInformation = this.getExtendedInformation();
result = result * PRIME + ($extendedInformation == null ? 43 : $extendedInformation.hashCode());
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy