![JAR search and dependency download from the Maven repository](/logo.png)
com.dell.cpsd.hdp.capability.registry.api.TermsQuery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hdp-capability-registry-client Show documentation
Show all versions of hdp-capability-registry-client Show documentation
This repository contains the source code for the capability registry API.
This API exposes the interface through which a consumer or provider interacts with the capability registry.
The newest version!
package com.dell.cpsd.hdp.capability.registry.api;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"scope",
"property",
"values"
})
public class TermsQuery {
@JsonProperty("scope")
private String scope;
@JsonProperty("property")
private String property;
@JsonProperty("values")
private List values = new ArrayList();
/**
* No args constructor for use in serialization
*
*/
public TermsQuery() {
}
/**
*
* @param scope
* @param values
* @param property
*/
public TermsQuery(String scope, String property, List values) {
super();
this.scope = scope;
this.property = property;
this.values = values;
}
/**
*
* @return
* The scope
*/
@JsonProperty("scope")
public String getScope() {
return scope;
}
/**
*
* @param scope
* The scope
*/
@JsonProperty("scope")
public void setScope(String scope) {
this.scope = scope;
}
/**
*
* @return
* The property
*/
@JsonProperty("property")
public String getProperty() {
return property;
}
/**
*
* @param property
* The property
*/
@JsonProperty("property")
public void setProperty(String property) {
this.property = property;
}
/**
*
* @return
* The values
*/
@JsonProperty("values")
public List getValues() {
return values;
}
/**
*
* @param values
* The values
*/
@JsonProperty("values")
public void setValues(List values) {
this.values = values;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(scope).append(property).append(values).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof TermsQuery) == false) {
return false;
}
TermsQuery rhs = ((TermsQuery) other);
return new EqualsBuilder().append(scope, rhs.scope).append(property, rhs.property).append(values, rhs.values).isEquals();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy