simnet
Class Socket.MeasurableObject

java.lang.Object
  extended bysimnet.Socket.MeasurableObject
Enclosing class:
Socket

private class Socket.MeasurableObject
extends java.lang.Object

Encapsulates an object and its size (with caching).


Field Summary
protected  int cached_size
          The cached size of the encapsulated objected.
 java.lang.Object o
          The object itself.
 
Constructor Summary
Socket.MeasurableObject(java.lang.Object o)
          Create a MeasurableObject for o.
 
Method Summary
 int getSize()
          Return the size of o (cached).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

o

public final java.lang.Object o
The object itself.


cached_size

protected transient int cached_size
The cached size of the encapsulated objected.

Constructor Detail

Socket.MeasurableObject

public Socket.MeasurableObject(java.lang.Object o)
Create a MeasurableObject for o.

Method Detail

getSize

public int getSize()
Return the size of o (cached).