Module org.apache.wicket.core
Package org.apache.wicket.core.util.lang
Interface WicketObjects.IObjectSizeOfStrategy
- All Known Implementing Classes:
InstrumentationObjectSizeOfStrategy
,WicketObjects.SerializingObjectSizeOfStrategy
- Enclosing class:
- WicketObjects
public static interface WicketObjects.IObjectSizeOfStrategy
Interface that enables users to plugin the way object sizes are calculated with Wicket.
-
Method Summary
Modifier and TypeMethodDescriptionlong
sizeOf
(Serializable object) Computes the size of an object.
-
Method Details
-
sizeOf
Computes the size of an object. This typically is an estimation, not an absolute accurate size.- Parameters:
object
- The serializable object to compute size of- Returns:
- The size of the object in bytes.
-