org.gscg.common.interactionlayer
Class ObjectMeter

java.lang.Object
  extended byorg.gscg.common.interactionlayer.ObjectMeter

public final class ObjectMeter
extends java.lang.Object

http://www.churchillobjects.com/c/13029.html

See for project information www.simulation.tudelft.nl

Since:
1.0.0
Version:
$Revision: 1.1 $ $Date: 2005/06/16 12:33:58 $
Author:
http://www.churchillobjects.com/c/13029.html

Method Summary
static int getObjectSize(java.lang.Object object)
          Determines the size of an object in bytes when it is serialized.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getObjectSize

public static int getObjectSize(java.lang.Object object)
Determines the size of an object in bytes when it is serialized. This should not be used for anything other than optimization testing since it can be memory and processor intensive.

Parameters:
object - the object to get the size from
Returns:
returns an integer reflecting the object size in bytes


Copyright © 2002-2005 Delft University of Technology, the Netherlands. All Rights Reserved.