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

IceGrid.TemplateDescriptorDictHelper 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;

public final class TemplateDescriptorDictHelper
{
    public static void
    write(Ice.OutputStream ostr, java.util.Map v)
    {
        if(v == null)
        {
            ostr.writeSize(0);
        }
        else
        {
            ostr.writeSize(v.size());
            for(java.util.Map.Entry e : v.entrySet())
            {
                ostr.writeString(e.getKey());
                TemplateDescriptor.ice_write(ostr, e.getValue());
            }
        }
    }

    public static java.util.Map
    read(Ice.InputStream istr)
    {
        java.util.Map v;
        v = new java.util.HashMap();
        int sz0 = istr.readSize();
        for(int i0 = 0; i0 < sz0; i0++)
        {
            String key;
            key = istr.readString();
            TemplateDescriptor value = null;
            value = TemplateDescriptor.ice_read(istr);
            v.put(key, value);
        }
        return v;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy