public class SizeofUtility extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
SIZEOF_BOOLEAN
Size of a boolean variable.
|
static int |
SIZEOF_BYTE
Size of a byte variable.
|
static int |
SIZEOF_CHAR
Size of a char variable.
|
static int |
SIZEOF_DOUBLE
Size of a double variable.
|
static int |
SIZEOF_FLOAT
Size of a float variable.
|
static int |
SIZEOF_INT
Size of an integer variable.
|
static int |
SIZEOF_LONG
Size of a long variable.
|
static int |
SIZEOF_OBJECT_OVERHEAD
Overhead of an object.
|
static int |
SIZEOF_REFERENCE |
static int |
SIZEOF_SHORT
Size of a short variable.
|
static int |
VM
Size range of the VM.
|
| Constructor and Description |
|---|
SizeofUtility() |
| Modifier and Type | Method and Description |
|---|---|
static int |
deepSizeof(Object o) |
static void |
main(String[] a) |
static int |
shortSizeof(Object o) |
static int |
sizeof(Object o,
boolean deep) |
public static final int SIZEOF_INT
public static final int SIZEOF_BYTE
public static final int SIZEOF_LONG
public static final int SIZEOF_FLOAT
public static final int SIZEOF_DOUBLE
public static final int SIZEOF_CHAR
public static final int SIZEOF_SHORT
public static final int SIZEOF_BOOLEAN
public static final int VM
public static final int SIZEOF_REFERENCE
public static final int SIZEOF_OBJECT_OVERHEAD
Copyright © 2010-2014 anotheria.net. All Rights Reserved.