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

IceGrid.ApplicationDescriptorSeqHelper 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 ApplicationDescriptorSeqHelper
{
    public static void
    write(Ice.OutputStream ostr, java.util.List v)
    {
        if(v == null)
        {
            ostr.writeSize(0);
        }
        else
        {
            ostr.writeSize(v.size());
            for(ApplicationDescriptor elem : v)
            {
                ApplicationDescriptor.ice_write(ostr, elem);
            }
        }
    }

    public static java.util.List
    read(Ice.InputStream istr)
    {
        java.util.List v;
        v = new java.util.LinkedList();
        final int len0 = istr.readAndCheckSeqSize(10);
        for(int i0 = 0; i0 < len0; i0++)
        {
            ApplicationDescriptor elem = null;
            elem = ApplicationDescriptor.ice_read(istr);
            v.add(elem);
        }
        return v;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy