PoiInfo.java 2.29 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 `bsd.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//

package BaseStationData;

public class PoiInfo implements java.lang.Cloneable, java.io.Serializable
{
    public float distance;

    public String type;

    public PoiInfo()
    {
    }

    public PoiInfo(float distance, String type)
    {
        this.distance = distance;
        this.type = type;
    }

    public boolean
    equals(java.lang.Object rhs)
    {
        if(this == rhs)
        {
            return true;
        }
        PoiInfo _r = null;
        if(rhs instanceof PoiInfo)
        {
            _r = (PoiInfo)rhs;
        }

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

            return true;
        }

        return false;
    }

    public int
    hashCode()
    {
        int __h = 5381;
        __h = IceInternal.HashUtil.hashAdd(__h, "::BaseStationData::PoiInfo");
        __h = IceInternal.HashUtil.hashAdd(__h, distance);
        __h = IceInternal.HashUtil.hashAdd(__h, type);
        return __h;
    }

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

    public void
    __write(IceInternal.BasicStream __os)
    {
        __os.writeFloat(distance);
        __os.writeString(type);
    }

    public void
    __read(IceInternal.BasicStream __is)
    {
        distance = __is.readFloat();
        type = __is.readString();
    }

    public static final long serialVersionUID = 129041973163109527L;
}