ConvRequest.java 2.48 KB
// **********************************************************************
//
// Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
//
// Ice version 3.5.1
//
// <auto-generated>
//
// Generated from file `HDao_gps.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//

package com.glsx.ice.HDaoGps;

public class ConvRequest implements Cloneable, java.io.Serializable
{
    public ConvType type;

    public int lng;

    public int lat;

    public ConvRequest()
    {
    }

    public ConvRequest(ConvType type, int lng, int lat)
    {
        this.type = type;
        this.lng = lng;
        this.lat = lat;
    }

    public boolean
    equals(Object rhs)
    {
        if(this == rhs)
        {
            return true;
        }
        ConvRequest _r = null;
        if(rhs instanceof ConvRequest)
        {
            _r = (ConvRequest)rhs;
        }

        if(_r != null)
        {
            if(type != _r.type)
            {
                if(type == null || _r.type == null || !type.equals(_r.type))
                {
                    return false;
                }
            }
            if(lng != _r.lng)
            {
                return false;
            }
            if(lat != _r.lat)
            {
                return false;
            }

            return true;
        }

        return false;
    }

    public int
    hashCode()
    {
        int __h = 5381;
        __h = IceInternal.HashUtil.hashAdd(__h, "::HDaoGps::ConvRequest");
        __h = IceInternal.HashUtil.hashAdd(__h, type);
        __h = IceInternal.HashUtil.hashAdd(__h, lng);
        __h = IceInternal.HashUtil.hashAdd(__h, lat);
        return __h;
    }

    public Object
    clone()
    {
        Object o = null;
        try
        {
            o = super.clone();
        }
        catch(CloneNotSupportedException ex)
        {
            assert false; // impossible
        }
        return o;
    }

    public void
    __write(IceInternal.BasicStream __os)
    {
        type.__write(__os);
        __os.writeInt(lng);
        __os.writeInt(lat);
    }

    public void
    __read(IceInternal.BasicStream __is)
    {
        type = ConvType.__read(__is);
        lng = __is.readInt();
        lat = __is.readInt();
    }

    public static final long serialVersionUID = -1241051541L;
}