BsData.java 2.38 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 BsData implements java.lang.Cloneable, java.io.Serializable
{
    public int mnc;

    public int lac;

    public int cellid;

    public BsData()
    {
    }

    public BsData(int mnc, int lac, int cellid)
    {
        this.mnc = mnc;
        this.lac = lac;
        this.cellid = cellid;
    }

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

        if(_r != null)
        {
            if(mnc != _r.mnc)
            {
                return false;
            }
            if(lac != _r.lac)
            {
                return false;
            }
            if(cellid != _r.cellid)
            {
                return false;
            }

            return true;
        }

        return false;
    }

    public int
    hashCode()
    {
        int __h = 5381;
        __h = IceInternal.HashUtil.hashAdd(__h, "::BaseStationData::BsData");
        __h = IceInternal.HashUtil.hashAdd(__h, mnc);
        __h = IceInternal.HashUtil.hashAdd(__h, lac);
        __h = IceInternal.HashUtil.hashAdd(__h, cellid);
        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.writeInt(mnc);
        __os.writeInt(lac);
        __os.writeInt(cellid);
    }

    public void
    __read(IceInternal.BasicStream __is)
    {
        mnc = __is.readInt();
        lac = __is.readInt();
        cellid = __is.readInt();
    }

    public static final long serialVersionUID = -1180175726157969065L;
}