io.sarl.lang.core.util
Class SerializableProxy
All Superinterfaces:
java.io.Serializable
class SerializableProxy
extends java.lang.Object
implements java.io.Serializable
An object that could be used as a proxy for serializing an object.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
core
Since:
0.8.6
Constructor Summary
Constructor and description
new(Class<T>,Object*)
Construct a proxy.
Action Summary
Modifier and type Action and description
T getValue(int)
Replies the value at the given index.
Constructor Details
new(Class<T>,Object*)
new(Class<T>,Object*)
Construct a proxy.
Parameters:
type - the inner or anonymous class of the object to create when deserializing.
values - the values to serialize.
Action Details
getValue(int)
def getValue(int) : T

with T

Replies the value at the given index.
Parameters:
<T> - the expected type of the data.
index - the index.
Returns:
the value.