org.smallmind.claxon.registry.json.TachometerPropertiesInView Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of claxon-registry Show documentation
Show all versions of claxon-registry Show documentation
Code Instrumentation Framework
package org.smallmind.claxon.registry.json;
import java.util.Objects;
import jakarta.annotation.Generated;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlAnyElement;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
@Generated("org.smallmind.web.json.doppelganger.DoppelgangerAnnotationProcessor")
@XmlRootElement(name = "tachometerProperties", namespace = "http://org.smallmind/web/json/doppelganger")
@XmlAccessorType(XmlAccessType.PROPERTY)
public class TachometerPropertiesInView {
// native fields
private org.smallmind.nutsnbolts.time.Stint resolutionStint;
public static TachometerPropertiesInView instance (TachometerProperties tachometerProperties) {
return new TachometerPropertiesInView(tachometerProperties);
}
public TachometerPropertiesInView () {
}
public TachometerPropertiesInView (TachometerProperties tachometerProperties) {
this.resolutionStint = tachometerProperties.getResolutionStint();
}
public TachometerProperties factory () {
return factory(new org.smallmind.claxon.registry.json.TachometerProperties());
}
public TachometerProperties factory (TachometerProperties tachometerProperties) {
tachometerProperties.setResolutionStint(resolutionStint);
return tachometerProperties;
}
// native getters and setters
@XmlJavaTypeAdapter(org.smallmind.claxon.registry.json.StintXmlAdapter.class)
@XmlElement(name = "resolutionStint")
public org.smallmind.nutsnbolts.time.Stint getResolutionStint () {
return resolutionStint;
}
public TachometerPropertiesInView setResolutionStint (org.smallmind.nutsnbolts.time.Stint resolutionStint) {
this.resolutionStint = resolutionStint;
return this;
}
@Override
public int hashCode () {
int h;
h = Objects.hashCode(getResolutionStint());
return h;
}
@Override
public boolean equals (Object obj) {
if (this == obj) {
return true;
} else if (!(obj instanceof TachometerPropertiesInView)) {
return false;
} else {
if (!Objects.equals(this.getResolutionStint(), ((TachometerPropertiesInView)obj).getResolutionStint())) {
return false;
}
return true;
}
}
}