IceGrid.AdapterDescriptorSeqHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of icegrid-compat Show documentation
Show all versions of icegrid-compat Show documentation
Locate, deploy, and manage Ice servers
//
// 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 AdapterDescriptorSeqHelper
{
public static void
write(Ice.OutputStream ostr, java.util.List v)
{
if(v == null)
{
ostr.writeSize(0);
}
else
{
ostr.writeSize(v.size());
for(AdapterDescriptor elem : v)
{
AdapterDescriptor.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(9);
for(int i0 = 0; i0 < len0; i0++)
{
AdapterDescriptor elem = null;
elem = AdapterDescriptor.ice_read(istr);
v.add(elem);
}
return v;
}
}