Class ModelVM

  • All Implemented Interfaces:
    DataModel

    public class ModelVM
    extends java.lang.Object
    implements DataModel
    Current data model as detected by JVM.
    • Constructor Detail

      • ModelVM

        public ModelVM()
    • Method Detail

      • markHeaderSize

        public int markHeaderSize()
        Description copied from interface: DataModel
        Return the mark header size.
        Specified by:
        markHeaderSize in interface DataModel
        Returns:
        mark header size in bytes.
      • classHeaderSize

        public int classHeaderSize()
        Description copied from interface: DataModel
        Return the class header size.
        Specified by:
        classHeaderSize in interface DataModel
        Returns:
        class header size in bytes.
      • arrayLengthHeaderSize

        public int arrayLengthHeaderSize()
        Description copied from interface: DataModel
        Return the array length header size.
        Specified by:
        arrayLengthHeaderSize in interface DataModel
        Returns:
        array length header size in bytes.
      • 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.
      • arrayHeaderSize

        public int arrayHeaderSize()
        Description copied from interface: DataModel
        Return the array header size.
        Specified by:
        arrayHeaderSize in interface DataModel
        Returns:
        object header size in bytes.
      • sizeOf

        public int sizeOf​(java.lang.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.
      • objectAlignment

        public int objectAlignment()
        Description copied from interface: DataModel
        Return the object alignment.
        Specified by:
        objectAlignment in interface DataModel
        Returns:
        minimal object alignment
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object