com.zeroc.IceMX.MetricsViewHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ice Show documentation
Show all versions of ice Show documentation
Ice is a comprehensive RPC framework that helps you build distributed applications with minimal effort using familiar object-oriented idioms
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.8
//
//
//
// Generated from file `Metrics.ice'
//
// Warning: do not edit this file.
//
//
//
package com.zeroc.IceMX;
/**
* Helper class for marshaling/unmarshaling MetricsView.
**/
public final class MetricsViewHelper
{
public static void write(com.zeroc.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());
MetricsMapHelper.write(ostr, e.getValue());
}
}
}
public static java.util.Map read(com.zeroc.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();
Metrics[] value;
value = MetricsMapHelper.read(istr);
v.put(key, value);
}
return v;
}
public static void write(com.zeroc.Ice.OutputStream ostr, int tag, java.util.Optional> v)
{
if(v != null && v.isPresent())
{
write(ostr, tag, v.get());
}
}
public static void write(com.zeroc.Ice.OutputStream ostr, int tag, java.util.Map v)
{
if(ostr.writeOptional(tag, com.zeroc.Ice.OptionalFormat.FSize))
{
int pos = ostr.startSize();
MetricsViewHelper.write(ostr, v);
ostr.endSize(pos);
}
}
public static java.util.Optional> read(com.zeroc.Ice.InputStream istr, int tag)
{
if(istr.readOptional(tag, com.zeroc.Ice.OptionalFormat.FSize))
{
istr.skip(4);
java.util.Map v;
v = MetricsViewHelper.read(istr);
return java.util.Optional.of(v);
}
else
{
return java.util.Optional.empty();
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy