Package moa.core
Class SizeOf
- java.lang.Object
-
- moa.core.SizeOf
-
public class SizeOf extends Object
Helper class for Maxim Zakharenkov's SizeOf agent.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description SizeOf()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
fullSizeOf(Object o)
Returns the full size of the object.protected static boolean
isPresent()
Checks whteher the agent is present.static long
sizeOf(Object o)
Returns the size of the object.
-
-
-
Field Detail
-
m_Present
protected static Boolean m_Present
whether the agent is present.
-
-
Method Detail
-
isPresent
protected static boolean isPresent()
Checks whteher the agent is present.- Returns:
- true if the agent is present, false otherwise
-
sizeOf
public static long sizeOf(Object o)
Returns the size of the object.- Parameters:
o
- the object to get the size for- Returns:
- the size of the object, or if the agent isn't present -1
-
fullSizeOf
public static long fullSizeOf(Object o)
Returns the full size of the object.- Parameters:
o
- the object to get the size for- Returns:
- the size of the object, or if the agent isn't present -1
-
-