Class UnsafeSizeOf
java.lang.Object
org.ehcache.sizeof.SizeOf
org.ehcache.sizeof.impl.UnsafeSizeOf
Unsafe.theUnsafe based sizeOf measurement
All constructors will throw UnsupportedOperationException if theUnsafe isn't accessible on this platform- Author:
- Chris Dennis
-
Constructor Summary
ConstructorsConstructorDescriptionBuilds a new SizeOf that will not filter fields and will cache reflected fieldsUnsafeSizeOf(SizeOfFilter filter) Builds a new SizeOf that will filter fields according to the provided filter and will cache reflected fieldsUnsafeSizeOf(SizeOfFilter filter, boolean caching, boolean bypassFlyweight) Builds a new SizeOf that will filter fields according to the provided filter -
Method Summary
Methods inherited from class SizeOf
deepSizeOf, deepSizeOf, newInstance, newInstance
-
Constructor Details
-
UnsafeSizeOf
Builds a new SizeOf that will not filter fields and will cache reflected fields- Throws:
UnsupportedOperationException- If Unsafe isn't accessible- See Also:
-
UnsafeSizeOf
Builds a new SizeOf that will filter fields according to the provided filter and will cache reflected fields- Parameters:
filter- The filter to apply- Throws:
UnsupportedOperationException- If Unsafe isn't accessible- See Also:
-
UnsafeSizeOf
public UnsafeSizeOf(SizeOfFilter filter, boolean caching, boolean bypassFlyweight) throws UnsupportedOperationException Builds a new SizeOf that will filter fields according to the provided filter- Parameters:
filter- The filter to applycaching- whether to cache reflected fieldsbypassFlyweight- whether "Flyweight Objects" are to be ignored- Throws:
UnsupportedOperationException- If Unsafe isn't accessible- See Also:
-
-
Method Details
-
sizeOf
-