Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  //
  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
  // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
  // Any modifications to this file will be lost upon recompilation of the source schema. 
  // Generated on: 2015.04.16 at 07:22:02 AM CEST 
  //
  
  
  package net.opengis.arml.v_2_0;
 

Java class for DistanceConditionType complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="DistanceConditionType">
   <complexContent>
     <extension base="{http://www.opengis.net/arml/2.0}ConditionType">
       <sequence>
         <element name="max" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
         <element name="min" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "DistanceConditionType", propOrder = {
     "max",
     "min"
 })
 public class DistanceConditionType
     extends ConditionType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     protected Double max;
     protected Double min;

    
Gets the value of the max property.

Returns:
possible object is
 
     public Double getMax() {
         return ;
     }

    
Sets the value of the max property.

Parameters:
value allowed object is
 
     public void setMax(Double value) {
         this. = value;
     }

    
Gets the value of the min property.

Returns:
possible object is
 
     public Double getMin() {
         return ;
    }

    
Sets the value of the min property.

Parameters:
value allowed object is
    public void setMin(Double value) {
        this. = value;
    }
    public String toString() {
        final ToStringStrategy strategy = .;
        final StringBuilder buffer = new StringBuilder();
        append(nullbufferstrategy);
        return buffer.toString();
    }
    public StringBuilder append(ObjectLocator locatorStringBuilder bufferToStringStrategy strategy) {
        strategy.appendStart(locatorthisbuffer);
        appendFields(locatorbufferstrategy);
        strategy.appendEnd(locatorthisbuffer);
        return buffer;
    }
    public StringBuilder appendFields(ObjectLocator locatorStringBuilder bufferToStringStrategy strategy) {
        super.appendFields(locatorbufferstrategy);
        {
            Double theMax;
            theMax = this.getMax();
            strategy.appendField(locatorthis"max"buffertheMax);
        }
        {
            Double theMin;
            theMin = this.getMin();
            strategy.appendField(locatorthis"min"buffertheMin);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof DistanceConditionType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final DistanceConditionType that = ((DistanceConditionTypeobject);
        {
            Double lhsMax;
            lhsMax = this.getMax();
            Double rhsMax;
            rhsMax = that.getMax();
            if (!strategy.equals(LocatorUtils.property(thisLocator"max"lhsMax), LocatorUtils.property(thatLocator"max"rhsMax), lhsMaxrhsMax)) {
                return false;
            }
        }
        {
            Double lhsMin;
            lhsMin = this.getMin();
            Double rhsMin;
            rhsMin = that.getMin();
            if (!strategy.equals(LocatorUtils.property(thisLocator"min"lhsMin), LocatorUtils.property(thatLocator"min"rhsMin), lhsMinrhsMin)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = super.hashCode(locatorstrategy);
        {
            Double theMax;
            theMax = this.getMax();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"max"theMax), currentHashCodetheMax);
        }
        {
            Double theMin;
            theMin = this.getMin();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"min"theMin), currentHashCodetheMin);
        }
        return currentHashCode;
    }
    public int hashCode() {
        final HashCodeStrategy strategy = .;
        return this.hashCode(nullstrategy);
    }
    public Object clone() {
        return copyTo(createNewInstance());
    }
    public Object copyTo(Object target) {
        final CopyStrategy strategy = .;
        return copyTo(nulltargetstrategy);
    }
    public Object copyTo(ObjectLocator locatorObject targetCopyStrategy strategy) {
        final Object draftCopy = ((target == null)?createNewInstance():target);
        super.copyTo(locatordraftCopystrategy);
        if (draftCopy instanceof DistanceConditionType) {
            final DistanceConditionType copy = ((DistanceConditionTypedraftCopy);
            if (this.!= null) {
                Double sourceMax;
                sourceMax = this.getMax();
                Double copyMax = ((Doublestrategy.copy(LocatorUtils.property(locator"max"sourceMax), sourceMax));
                copy.setMax(copyMax);
            } else {
                copy.max = null;
            }
            if (this.!= null) {
                Double sourceMin;
                sourceMin = this.getMin();
                Double copyMin = ((Doublestrategy.copy(LocatorUtils.property(locator"min"sourceMin), sourceMin));
                copy.setMin(copyMin);
            } else {
                copy.min = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new DistanceConditionType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        super.mergeFrom(leftLocatorrightLocatorleftrightstrategy);
        if (right instanceof DistanceConditionType) {
            final DistanceConditionType target = this;
            final DistanceConditionType leftObject = ((DistanceConditionTypeleft);
            final DistanceConditionType rightObject = ((DistanceConditionTyperight);
            {
                Double lhsMax;
                lhsMax = leftObject.getMax();
                Double rhsMax;
                rhsMax = rightObject.getMax();
                Double mergedMax = ((Doublestrategy.merge(LocatorUtils.property(leftLocator"max"lhsMax), LocatorUtils.property(rightLocator"max"rhsMax), lhsMaxrhsMax));
                target.setMax(mergedMax);
            }
            {
                Double lhsMin;
                lhsMin = leftObject.getMin();
                Double rhsMin;
                rhsMin = rightObject.getMin();
                Double mergedMin = ((Doublestrategy.merge(LocatorUtils.property(leftLocator"min"lhsMin), LocatorUtils.property(rightLocator"min"rhsMin), lhsMinrhsMin));
                target.setMin(mergedMin);
            }
        }
    }
    public DistanceConditionType withMax(Double value) {
        setMax(value);
        return this;
    }
    public DistanceConditionType withMin(Double value) {
        setMin(value);
        return this;
    }
    @Override
    public DistanceConditionType withId(String value) {
        setId(value);
        return this;
    }
New to GrepCode? Check out our FAQ X