
org.smallmind.claxon.registry.json.TachometerPropertiesInView Maven / Gradle / Ivy
package org.smallmind.claxon.registry.json;
import java.util.Objects;
import javax.annotation.Generated;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.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;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy