Package org.atpfivt.ljv.jol
Class FieldLayout
- java.lang.Object
-
- org.atpfivt.ljv.jol.FieldLayout
-
- All Implemented Interfaces:
Comparable<FieldLayout>
public class FieldLayout extends Object implements Comparable<FieldLayout>
Holds the field info with the layout.- Author:
- Aleksey Shipilev
-
-
Constructor Summary
Constructors Constructor Description FieldLayout(org.openjdk.jol.info.FieldData fieldData, long offset, long size)
Construct field layout with discovered offset and field size.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(FieldLayout o)
org.openjdk.jol.info.FieldData
data()
boolean
equals(Object o)
int
hashCode()
String
name()
Answers the field name.long
offset()
Answers field offsetlong
size()
Answers field sizeString
toString()
String
typeClass()
Answers the class for the field type
-
-
-
Method Detail
-
offset
public long offset()
Answers field offset- Returns:
- field offset
-
size
public long size()
Answers field size- Returns:
- field size
-
typeClass
public String typeClass()
Answers the class for the field type- Returns:
- string representation of field type
-
name
public String name()
Answers the field name.- Returns:
- field name
-
data
public org.openjdk.jol.info.FieldData data()
-
compareTo
public int compareTo(FieldLayout o)
- Specified by:
compareTo
in interfaceComparable<FieldLayout>
-
-