feast.common.logging.entry.AutoValue_LogResource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of feast-common Show documentation
Show all versions of feast-common Show documentation
Feast common module with functionality that can be reused
package feast.common.logging.entry;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_LogResource extends LogResource {
private final LogResource.ResourceType type;
private final String id;
AutoValue_LogResource(
LogResource.ResourceType type,
String id) {
if (type == null) {
throw new NullPointerException("Null type");
}
this.type = type;
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
}
@Override
public LogResource.ResourceType getType() {
return type;
}
@Override
public String getId() {
return id;
}
@Override
public String toString() {
return "LogResource{"
+ "type=" + type + ", "
+ "id=" + id
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof LogResource) {
LogResource that = (LogResource) o;
return this.type.equals(that.getType())
&& this.id.equals(that.getId());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= type.hashCode();
h$ *= 1000003;
h$ ^= id.hashCode();
return h$;
}
}