@@ -1,74 +0,0 @@
|
||||
package org.lucares.pdbui.domain;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
public class Index {
|
||||
private String id;
|
||||
private String name;
|
||||
private String description;
|
||||
|
||||
public Index() {
|
||||
super();
|
||||
}
|
||||
|
||||
public Index(final String id, final String name, final String description) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(final String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public void setName(final String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setDescription(final String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(id, description, name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(final Object obj) {
|
||||
if (this == obj)
|
||||
return true;
|
||||
if (obj == null)
|
||||
return false;
|
||||
if (getClass() != obj.getClass())
|
||||
return false;
|
||||
final Index other = (Index) obj;
|
||||
return Objects.equals(id, other.id) && Objects.equals(description, other.description)
|
||||
&& Objects.equals(name, other.name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
final StringBuilder builder = new StringBuilder();
|
||||
builder.append("Index [id=");
|
||||
builder.append(id);
|
||||
builder.append(", name=");
|
||||
builder.append(name);
|
||||
builder.append(", description=");
|
||||
builder.append(description);
|
||||
builder.append("]");
|
||||
return builder.toString();
|
||||
}
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
package org.lucares.pdbui.domain;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class IndexesResponse {
|
||||
private List<Index> indexes;
|
||||
|
||||
public IndexesResponse(final List<Index> indexes) {
|
||||
super();
|
||||
this.indexes = indexes;
|
||||
}
|
||||
|
||||
public void setIndexes(final List<Index> indexes) {
|
||||
this.indexes = indexes;
|
||||
}
|
||||
|
||||
public List<Index> getIndexes() {
|
||||
return indexes;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user