![JAR search and dependency download from the Maven repository](/logo.png)
com.singingbush.dubclient.data.SearchResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dub-client Show documentation
Show all versions of dub-client Show documentation
Conveniently call the REST API on code.dlang.org and other DUB repositories
package com.singingbush.dubclient.data;
import java.util.Objects;
/**
* @author Samael Bate (singingbush)
* created on 20/06/18
*/
public class SearchResult {
private String name;
private String description;
private String version;
public String getName() {
return name;
}
public String getDescription() {
return description;
}
public String getVersion() {
return version;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
final SearchResult that = (SearchResult) o;
return Objects.equals(name, that.name) &&
Objects.equals(description, that.description) &&
Objects.equals(version, that.version);
}
@Override
public int hashCode() {
return Objects.hash(name, description, version);
}
@Override
public String toString() {
final StringBuilder sb = new StringBuilder("SearchResult{");
sb.append("name='").append(name).append('\'');
sb.append(", description='").append(description).append('\'');
sb.append(", version='").append(version).append('\'');
sb.append('}');
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy