public class MemoryEstimates extends Object
Constructor and Description |
---|
MemoryEstimates() |
Modifier and Type | Method and Description |
---|---|
static long |
bitSetCost(int length)
Get the worst case memory usage of an java.util.BitSet java object.
|
static long |
byteArrayCost(int length)
Get the worst case memory usage of an array of bytes.
|
static long |
charArrayCost(int length)
Get the worst case memory usage of an array of chars.
|
static double |
doubleArrayCost(long length)
Get the worst case memory usage of an array of doubles.
|
static double |
intArrayCost(long length)
Get the worst case memory usage of an array of integers.
|
static double |
longArrayCost(int length)
Get the worst case memory usage for an array of longs
|
static double |
objectArrayCost(long length)
Get the worst case memory usage for an array of objects.
|
public static long bitSetCost(int length)
length
- The length of the array.public static long byteArrayCost(int length)
length
- The length of the array.public static long charArrayCost(int length)
length
- The length of the array.public static double intArrayCost(long length)
length
- The length of the array.public static double doubleArrayCost(long length)
length
- The length of the array.public static double objectArrayCost(long length)
length
- The length of the array.public static double longArrayCost(int length)
length
- The length of the array.Copyright © 2021 The Apache Software Foundation. All rights reserved.