org.flyte.jflyte.utils.AutoValue_Artifact Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jflyte-utils Show documentation
Show all versions of jflyte-utils Show documentation
Primarily used by jflyte, but can also be used to extend or build a jflyte alternative
package org.flyte.jflyte.utils;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Artifact extends Artifact {
private final String location;
private final String name;
private final long size;
AutoValue_Artifact(
String location,
String name,
long size) {
if (location == null) {
throw new NullPointerException("Null location");
}
this.location = location;
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
this.size = size;
}
@Override
String location() {
return location;
}
@Override
String name() {
return name;
}
@Override
long size() {
return size;
}
@Override
public String toString() {
return "Artifact{"
+ "location=" + location + ", "
+ "name=" + name + ", "
+ "size=" + size
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Artifact) {
Artifact that = (Artifact) o;
return this.location.equals(that.location())
&& this.name.equals(that.name())
&& this.size == that.size();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= location.hashCode();
h$ *= 1000003;
h$ ^= name.hashCode();
h$ *= 1000003;
h$ ^= (int) ((size >>> 32) ^ size);
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy