DaoPoiInfoResp.java 2.26 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 DaoPoiInfoResp implements java.lang.Cloneable, java.io.Serializable
{
    public int size;

    public PoiInfo[] records;

    public DaoPoiInfoResp()
    {
    }

    public DaoPoiInfoResp(int size, PoiInfo[] records)
    {
        this.size = size;
        this.records = records;
    }

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

        if(_r != null)
        {
            if(size != _r.size)
            {
                return false;
            }
            if(!java.util.Arrays.equals(records, _r.records))
            {
                return false;
            }

            return true;
        }

        return false;
    }

    public int
    hashCode()
    {
        int __h = 5381;
        __h = IceInternal.HashUtil.hashAdd(__h, "::BaseStationData::DaoPoiInfoResp");
        __h = IceInternal.HashUtil.hashAdd(__h, size);
        __h = IceInternal.HashUtil.hashAdd(__h, records);
        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(size);
        poiDatasHelper.write(__os, records);
    }

    public void
    __read(IceInternal.BasicStream __is)
    {
        size = __is.readInt();
        records = poiDatasHelper.read(__is);
    }

    public static final long serialVersionUID = 6922468175968905097L;
}