org.openjdk.jol.datamodel
Class CurrentDataModel

java.lang.Object
  extended by org.openjdk.jol.datamodel.CurrentDataModel
All Implemented Interfaces:
DataModel

public class CurrentDataModel
extends Object
implements DataModel

Current data model as detected by JVM.

Author:
Aleksey Shipilev

Constructor Summary
CurrentDataModel()
           
 
Method Summary
 int headerSize()
          Return the object header size.
 int sizeOf(String klass)
          Return the size of the type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurrentDataModel

public CurrentDataModel()
Method Detail

headerSize

public int headerSize()
Description copied from interface: DataModel
Return the object header size.

Specified by:
headerSize in interface DataModel
Returns:
object header size in bytes.

sizeOf

public int sizeOf(String klass)
Description copied from interface: DataModel
Return the size of the type.

Specified by:
sizeOf in interface DataModel
Parameters:
klass - string representation of the type.
Returns:
size in bytes.


Copyright © 2013. All Rights Reserved.