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

Ice.PropertyDictHelper Maven / Gradle / Ivy

Go to download

Ice is a comprehensive RPC framework that helps you build distributed applications with minimal effort using familiar object-oriented idioms

There is a newer version: 3.7.10
Show newest version
// **********************************************************************
//
// Copyright (c) 2003-2018 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.6.5
//
// 
//
// Generated from file `PropertiesAdmin.ice'
//
// Warning: do not edit this file.
//
// 
//

package Ice;

public final class PropertyDictHelper
{
    public static void
    write(IceInternal.BasicStream __os, java.util.Map __v)
    {
        if(__v == null)
        {
            __os.writeSize(0);
        }
        else
        {
            __os.writeSize(__v.size());
            for(java.util.Map.Entry __e : __v.entrySet())
            {
                __os.writeString(__e.getKey());
                __os.writeString(__e.getValue());
            }
        }
    }

    public static java.util.Map
    read(IceInternal.BasicStream __is)
    {
        java.util.Map __v;
        __v = new java.util.HashMap();
        int __sz0 = __is.readSize();
        for(int __i0 = 0; __i0 < __sz0; __i0++)
        {
            String __key;
            __key = __is.readString();
            String __value;
            __value = __is.readString();
            __v.put(__key, __value);
        }
        return __v;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy