de.micromata.opengis.kml.v_2_2_0.gx.Wait Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of JavaAPIforKml Show documentation
Show all versions of JavaAPIforKml Show documentation
This is JavaAPIforKMml, Micromata's library for use with applications that want to parse, generate and operate on KML. It is an implementation of the OGC KML 2.2 standard. It is written entirely in Java and makes heavy use of JAXB.
package de.micromata.opengis.kml.v_2_2_0.gx;
import java.util.List;
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.XmlType;
import de.micromata.opengis.kml.v_2_2_0.annotations.Obvious;
/**
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "WaitType", propOrder = {
"duration"
})
@XmlRootElement(name = "Wait", namespace = "http://www.google.com/kml/ext/2.2")
public class Wait
extends TourPrimitive
implements Cloneable
{
@XmlElement(defaultValue = "0.0")
protected double duration;
public Wait() {
super();
}
/**
*
* @return
* possible object is
* {@link Double}
*
*/
public double getDuration() {
return duration;
}
/**
*
* @param value
* allowed object is
* {@link Double}
*
*/
public void setDuration(double value) {
this.duration = value;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
long temp;
temp = Double.doubleToLongBits(duration);
result = ((prime*result)+((int)(temp^(temp >>>(32)))));
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if ((obj instanceof Wait) == false) {
return false;
}
Wait other = ((Wait) obj);
if (duration!= other.duration) {
return false;
}
return true;
}
/**
* fluent setter
*
*
* @param duration
* required parameter
*/
public Wait withDuration(final double duration) {
this.setDuration(duration);
return this;
}
@Obvious
@Override
public Wait withObjectSimpleExtension(final List