one.microproject.rpi.powercontroller.dto.Id Maven / Gradle / Ivy
package one.microproject.rpi.powercontroller.dto;
import java.util.Objects;
public abstract class Id {
private final String id;
protected Id(String id) {
this.id = id;
}
public String getId() {
return id;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Id id1 = (Id) o;
return Objects.equals(id, id1.id);
}
@Override
public int hashCode() {
return Objects.hash(id);
}
@Override
public String toString() {
return id;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy