public class MemoryTest
extends java.lang.Object
ObjectSizeProvider. Therefore, various classes are defined,
instantiated and compared with the native value delivered by the JVM.| Modifier and Type | Class and Description |
|---|---|
private static class |
MemoryTest.BooleanTest |
private static class |
MemoryTest.ByteTest |
private static class |
MemoryTest.CharacterTest |
private static class |
MemoryTest.DoubleTest |
private static class |
MemoryTest.EmptyTest |
private static class |
MemoryTest.FloatTest |
private static class |
MemoryTest.IntTest |
private static class |
MemoryTest.MixTest |
private static class |
MemoryTest.MixTest2 |
private static class |
MemoryTest.MixTest3 |
private static class |
MemoryTest.ObjectTest |
private static class |
MemoryTest.ShortTest |
| Modifier | Constructor and Description |
|---|---|
private |
MemoryTest()
Prevents this class from being instantiated from outside.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
Performs the test by creating instances and comparing them to the sizes
delivered by the JVM.
|