
io.imunity.furms.ui.components.support.models.CommunityComboBoxModel Maven / Gradle / Ivy
/*
* Copyright (c) 2020 Bixbit s.c. All rights reserved.
* See LICENSE file for licensing information.
*/
package io.imunity.furms.ui.components.support.models;
import io.imunity.furms.domain.communities.CommunityId;
import java.util.Objects;
public class CommunityComboBoxModel {
private final CommunityId id;
private final String name;
public CommunityComboBoxModel(CommunityId id, String name) {
this.id = id;
this.name = name;
}
public CommunityId getId() {
return id;
}
public String getName() {
return name;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CommunityComboBoxModel that = (CommunityComboBoxModel) o;
return Objects.equals(id, that.id);
}
@Override
public int hashCode() {
return Objects.hash(id);
}
@Override
public String toString() {
return "ComboBoxModel{" +
"id='" + id + '\'' +
", name='" + name + '\'' +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy