asInt method

As int.

Implementation

MarshalledMapValuePhase<int> asInt()
{
  // Deserialize keys using this object unmarshaller.
  for (int i = 0; i < _nativeMap.size(); i += 2)
  {
    _nativeMap.set(i, _nativeMap.get(i).asInt() );
  }

  // Delegate to value phase.
  return new MarshalledMapValuePhase<int>(_nativeMap);
}