
com.hubspot.singularity.SingularityId Maven / Gradle / Ivy
The newest version!
package com.hubspot.singularity;
import java.util.Objects;
public abstract class SingularityId {
public abstract String getId();
@Override
public int hashCode() {
return Objects.hashCode(getId());
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
SingularityId other = (SingularityId) obj;
return Objects.equals(getId(), other.getId());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy