
org.molgenis.genomebrowser.AutoValue_GenomeBrowserTrack Maven / Gradle / Ivy
package org.molgenis.genomebrowser;
import javax.annotation.CheckForNull;
import javax.annotation.Nullable;
import javax.annotation.processing.Generated;
import org.molgenis.data.meta.model.EntityType;
import org.molgenis.genomebrowser.meta.GenomeBrowserAttributes;
import org.molgenis.genomebrowser.meta.GenomeBrowserSettings;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_GenomeBrowserTrack extends GenomeBrowserTrack {
private final String id;
private final String label;
private final String labelAttr;
private final EntityType entity;
private final GenomeBrowserSettings.TrackType trackType;
private final Iterable molgenisReferenceTracks;
private final GenomeBrowserSettings.MolgenisReferenceMode molgenisReferenceMode;
private final GenomeBrowserAttributes genomeBrowserAttrs;
private final String actions;
private final String attrs;
private final String scoreAttr;
private final String exonKey;
private final String featureInfoPlugin;
AutoValue_GenomeBrowserTrack(
String id,
String label,
String labelAttr,
EntityType entity,
GenomeBrowserSettings.TrackType trackType,
Iterable molgenisReferenceTracks,
GenomeBrowserSettings.MolgenisReferenceMode molgenisReferenceMode,
GenomeBrowserAttributes genomeBrowserAttrs,
@Nullable String actions,
@Nullable String attrs,
@Nullable String scoreAttr,
@Nullable String exonKey,
@Nullable String featureInfoPlugin) {
if (id == null) {
throw new NullPointerException("Null id");
}
this.id = id;
if (label == null) {
throw new NullPointerException("Null label");
}
this.label = label;
if (labelAttr == null) {
throw new NullPointerException("Null labelAttr");
}
this.labelAttr = labelAttr;
if (entity == null) {
throw new NullPointerException("Null entity");
}
this.entity = entity;
if (trackType == null) {
throw new NullPointerException("Null trackType");
}
this.trackType = trackType;
if (molgenisReferenceTracks == null) {
throw new NullPointerException("Null molgenisReferenceTracks");
}
this.molgenisReferenceTracks = molgenisReferenceTracks;
if (molgenisReferenceMode == null) {
throw new NullPointerException("Null molgenisReferenceMode");
}
this.molgenisReferenceMode = molgenisReferenceMode;
if (genomeBrowserAttrs == null) {
throw new NullPointerException("Null genomeBrowserAttrs");
}
this.genomeBrowserAttrs = genomeBrowserAttrs;
this.actions = actions;
this.attrs = attrs;
this.scoreAttr = scoreAttr;
this.exonKey = exonKey;
this.featureInfoPlugin = featureInfoPlugin;
}
@Override
public String getId() {
return id;
}
@Override
public String getLabel() {
return label;
}
@Override
public String getLabelAttr() {
return labelAttr;
}
@Override
public EntityType getEntity() {
return entity;
}
@Override
public GenomeBrowserSettings.TrackType getTrackType() {
return trackType;
}
@Override
public Iterable getMolgenisReferenceTracks() {
return molgenisReferenceTracks;
}
@Override
public GenomeBrowserSettings.MolgenisReferenceMode getMolgenisReferenceMode() {
return molgenisReferenceMode;
}
@Override
public GenomeBrowserAttributes getGenomeBrowserAttrs() {
return genomeBrowserAttrs;
}
@Nullable
@CheckForNull
@Override
public String getActions() {
return actions;
}
@Nullable
@CheckForNull
@Override
public String getAttrs() {
return attrs;
}
@Nullable
@CheckForNull
@Override
public String getScoreAttr() {
return scoreAttr;
}
@Nullable
@CheckForNull
@Override
public String getExonKey() {
return exonKey;
}
@Nullable
@CheckForNull
@Override
public String getFeatureInfoPlugin() {
return featureInfoPlugin;
}
@Override
public String toString() {
return "GenomeBrowserTrack{"
+ "id=" + id + ", "
+ "label=" + label + ", "
+ "labelAttr=" + labelAttr + ", "
+ "entity=" + entity + ", "
+ "trackType=" + trackType + ", "
+ "molgenisReferenceTracks=" + molgenisReferenceTracks + ", "
+ "molgenisReferenceMode=" + molgenisReferenceMode + ", "
+ "genomeBrowserAttrs=" + genomeBrowserAttrs + ", "
+ "actions=" + actions + ", "
+ "attrs=" + attrs + ", "
+ "scoreAttr=" + scoreAttr + ", "
+ "exonKey=" + exonKey + ", "
+ "featureInfoPlugin=" + featureInfoPlugin
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof GenomeBrowserTrack) {
GenomeBrowserTrack that = (GenomeBrowserTrack) o;
return this.id.equals(that.getId())
&& this.label.equals(that.getLabel())
&& this.labelAttr.equals(that.getLabelAttr())
&& this.entity.equals(that.getEntity())
&& this.trackType.equals(that.getTrackType())
&& this.molgenisReferenceTracks.equals(that.getMolgenisReferenceTracks())
&& this.molgenisReferenceMode.equals(that.getMolgenisReferenceMode())
&& this.genomeBrowserAttrs.equals(that.getGenomeBrowserAttrs())
&& (this.actions == null ? that.getActions() == null : this.actions.equals(that.getActions()))
&& (this.attrs == null ? that.getAttrs() == null : this.attrs.equals(that.getAttrs()))
&& (this.scoreAttr == null ? that.getScoreAttr() == null : this.scoreAttr.equals(that.getScoreAttr()))
&& (this.exonKey == null ? that.getExonKey() == null : this.exonKey.equals(that.getExonKey()))
&& (this.featureInfoPlugin == null ? that.getFeatureInfoPlugin() == null : this.featureInfoPlugin.equals(that.getFeatureInfoPlugin()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= id.hashCode();
h$ *= 1000003;
h$ ^= label.hashCode();
h$ *= 1000003;
h$ ^= labelAttr.hashCode();
h$ *= 1000003;
h$ ^= entity.hashCode();
h$ *= 1000003;
h$ ^= trackType.hashCode();
h$ *= 1000003;
h$ ^= molgenisReferenceTracks.hashCode();
h$ *= 1000003;
h$ ^= molgenisReferenceMode.hashCode();
h$ *= 1000003;
h$ ^= genomeBrowserAttrs.hashCode();
h$ *= 1000003;
h$ ^= (actions == null) ? 0 : actions.hashCode();
h$ *= 1000003;
h$ ^= (attrs == null) ? 0 : attrs.hashCode();
h$ *= 1000003;
h$ ^= (scoreAttr == null) ? 0 : scoreAttr.hashCode();
h$ *= 1000003;
h$ ^= (exonKey == null) ? 0 : exonKey.hashCode();
h$ *= 1000003;
h$ ^= (featureInfoPlugin == null) ? 0 : featureInfoPlugin.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy