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

org.smallmind.claxon.registry.json.SpeedometerPropertiesInView 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 = "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;
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy