dev.struchkov.godfather.main.domain.UnitPointer Maven / Gradle / Ivy
package dev.struchkov.godfather.main.domain;
import java.util.Objects;
public class UnitPointer {
private Long personId;
private String unitName;
public UnitPointer(Long personId, String unitName) {
this.personId = personId;
this.unitName = unitName;
}
public Long getPersonId() {
return personId;
}
public String getUnitName() {
return unitName;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
UnitPointer that = (UnitPointer) o;
return Objects.equals(personId, that.personId) && Objects.equals(unitName, that.unitName);
}
@Override
public int hashCode() {
return Objects.hash(personId, unitName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy