public final class ObjectSizer
extends java.lang.Object
| Constructor and Description |
|---|
ObjectSizer() |
| Modifier and Type | Method and Description |
|---|---|
long |
getObjectSize(java.lang.Class aClass)
Return the approximate size in bytes, and return zero if the class
has no default constructor.
|
static void |
main(java.lang.String... aArguments)
First and only argument is the package-qualified name of a class
which has a no-argument constructor.
|
public static void main(java.lang.String... aArguments)
public long getObjectSize(java.lang.Class aClass)
aClass - refers to a class which has a no-argument constructor.