All Downloads are FREE. Search and download functionalities are using the official Maven repository.

IceGrid.PropertySetDescriptor Maven / Gradle / Ivy

There is a newer version: 3.7.10
Show newest version
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.3
//
// 
//
// Generated from file `Descriptor.ice'
//
// Warning: do not edit this file.
//
// 
//

package IceGrid;

/**
 * A property set descriptor.
 *
 **/
public class PropertySetDescriptor implements java.lang.Cloneable,
                                              java.io.Serializable
{
    /**
     * References to named property sets.
     *
     **/
    public String[] references;

    /**
     * The property set properties.
     *
     **/
    public java.util.List properties;

    public PropertySetDescriptor()
    {
    }

    public PropertySetDescriptor(String[] references, java.util.List properties)
    {
        this.references = references;
        this.properties = properties;
    }

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

        if(r != null)
        {
            if(!java.util.Arrays.equals(this.references, r.references))
            {
                return false;
            }
            if(this.properties != r.properties)
            {
                if(this.properties == null || r.properties == null || !this.properties.equals(r.properties))
                {
                    return false;
                }
            }

            return true;
        }

        return false;
    }

    public int
    hashCode()
    {
        int h_ = 5381;
        h_ = IceInternal.HashUtil.hashAdd(h_, "::IceGrid::PropertySetDescriptor");
        h_ = IceInternal.HashUtil.hashAdd(h_, references);
        h_ = IceInternal.HashUtil.hashAdd(h_, properties);
        return h_;
    }

    public PropertySetDescriptor
    clone()
    {
        PropertySetDescriptor c = null;
        try
        {
            c = (PropertySetDescriptor)super.clone();
        }
        catch(CloneNotSupportedException ex)
        {
            assert false; // impossible
        }
        return c;
    }

    public void
    ice_writeMembers(Ice.OutputStream ostr)
    {
        Ice.StringSeqHelper.write(ostr, this.references);
        PropertyDescriptorSeqHelper.write(ostr, this.properties);
    }

    public void
    ice_readMembers(Ice.InputStream istr)
    {
        this.references = Ice.StringSeqHelper.read(istr);
        this.properties = PropertyDescriptorSeqHelper.read(istr);
    }

    static public void
    ice_write(Ice.OutputStream ostr, PropertySetDescriptor v)
    {
        if(v == null)
        {
            _nullMarshalValue.ice_writeMembers(ostr);
        }
        else
        {
            v.ice_writeMembers(ostr);
        }
    }

    static public PropertySetDescriptor
    ice_read(Ice.InputStream istr)
    {
        PropertySetDescriptor v = new PropertySetDescriptor();
        v.ice_readMembers(istr);
        return v;
    }

    private static final PropertySetDescriptor _nullMarshalValue = new PropertySetDescriptor();

    public static final long serialVersionUID = -2026037587951922125L;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy