/** * Returns an implementation-specific approximation of the amount of storage consumed by * the specified object. The result may include some or all of the object's overhead, * and thus is useful for comparison within an implementation but not between implementations. * * The estimate may change during a single invocation of the JVM. * * @param objectToSize the object to size * @return an implementation-specific approximation of the amount of storage consumed by the specified object * @throws java.lang.NullPointerException if the supplied Object is <code>null</code>. */ long getObjectSize(Object objectToSize);
1
/**
1
* Returns an implementation-specific approximation of the amount of storage consumed by
1
* the specified object. The result may include some or all of the object's overhead,
1
* and thus is useful for comparison within an implementation but not between implementations.
1
*
1
* The estimate may change during a single invocation of the JVM.
1
*
1
* @param objectToSize the object to size
1
* @return an implementation-specific approximation of the amount of storage consumed by the specified object
1
* @throws java.lang.NullPointerException if the supplied Object is <code>null</code>.