BsDataReq.java 2 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 BsDataReq implements java.lang.Cloneable, java.io.Serializable
{
    public BsData bs;

    public BsDataReq()
    {
    }

    public BsDataReq(BsData bs)
    {
        this.bs = bs;
    }

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

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

            return true;
        }

        return false;
    }

    public int
    hashCode()
    {
        int __h = 5381;
        __h = IceInternal.HashUtil.hashAdd(__h, "::BaseStationData::BsDataReq");
        __h = IceInternal.HashUtil.hashAdd(__h, bs);
        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)
    {
        bs.__write(__os);
    }

    public void
    __read(IceInternal.BasicStream __is)
    {
        bs = new BsData();
        bs.__read(__is);
    }

    public static final long serialVersionUID = -7067405279854981467L;
}