org.smallmind.claxon.registry.json.SpeedometerPropertiesInView 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 = "speedometerProperties", namespace = "http://org.smallmind/claxon/registry")
@XmlAccessorType(XmlAccessType.PROPERTY)
public class SpeedometerPropertiesInView {
// native fields
private org.smallmind.nutsnbolts.time.Stint resolutionStint;
public static SpeedometerPropertiesInView instance (SpeedometerProperties speedometerProperties) {
return new SpeedometerPropertiesInView(speedometerProperties);
}
public SpeedometerPropertiesInView () {
}
public SpeedometerPropertiesInView (SpeedometerProperties speedometerProperties) {
this.resolutionStint = speedometerProperties.getResolutionStint();
}
public SpeedometerProperties factory () {
return factory(new org.smallmind.claxon.registry.json.SpeedometerProperties());
}
public SpeedometerProperties factory (SpeedometerProperties speedometerProperties) {
speedometerProperties.setResolutionStint(resolutionStint);
return speedometerProperties;
}
// 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 SpeedometerPropertiesInView 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 SpeedometerPropertiesInView)) {
return false;
} else {
if (!Objects.equals(this.getResolutionStint(), ((SpeedometerPropertiesInView)obj).getResolutionStint())) {
return false;
}
return true;
}
}
}