All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.smallmind.claxon.registry.json.TachometerPropertiesInView Maven / Gradle / Ivy

There is a newer version: 5.9.0
Show newest version
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;
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy