net.spals.appbuilder.graph.model.AutoValue_ServiceTreeVertex Maven / Gradle / Ivy
package net.spals.appbuilder.graph.model;
import java.util.Optional;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ServiceTreeVertex extends ServiceTreeVertex {
private final IServiceDAGVertex delegate;
private final Optional> parent;
AutoValue_ServiceTreeVertex(
IServiceDAGVertex delegate,
Optional> parent) {
if (delegate == null) {
throw new NullPointerException("Null delegate");
}
this.delegate = delegate;
if (parent == null) {
throw new NullPointerException("Null parent");
}
this.parent = parent;
}
@Override
IServiceDAGVertex getDelegate() {
return delegate;
}
@Override
public Optional> getParent() {
return parent;
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ServiceTreeVertex) {
ServiceTreeVertex> that = (ServiceTreeVertex>) o;
return (this.delegate.equals(that.getDelegate()))
&& (this.parent.equals(that.getParent()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.delegate.hashCode();
h *= 1000003;
h ^= this.parent.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy