DataCardInfo.java 2.28 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 DataCardInfo implements Cloneable, java.io.Serializable
{
    public int gpsTime;

    public String iccid;

    public DataCardInfo()
    {
    }

    public DataCardInfo(int gpsTime, String iccid)
    {
        this.gpsTime = gpsTime;
        this.iccid = iccid;
    }

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

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

            return true;
        }

        return false;
    }

    public int
    hashCode()
    {
        int __h = 5381;
        __h = IceInternal.HashUtil.hashAdd(__h, "::HDaoGps::DataCardInfo");
        __h = IceInternal.HashUtil.hashAdd(__h, gpsTime);
        __h = IceInternal.HashUtil.hashAdd(__h, iccid);
        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)
    {
        __os.writeInt(gpsTime);
        __os.writeString(iccid);
    }

    public void
    __read(IceInternal.BasicStream __is)
    {
        gpsTime = __is.readInt();
        iccid = __is.readString();
    }

    public static final long serialVersionUID = -1348575214L;
}