|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.util.CacheSizes
public class CacheSizes
Utility class for determining the sizes in bytes of commonly used objects. Classes implementing the Cacheable interface should use this class to determine their size.
Method Summary | |
---|---|
static int |
sizeOfBoolean()
Returns the size in bytes of a primitive boolean. |
static int |
sizeOfChar()
Returns the size in bytes of a primitive char. |
static int |
sizeOfDate()
Returns the size in bytes of a Date. |
static int |
sizeOfDouble()
Returns the size in bytes of a primitive double. |
static int |
sizeOfInt()
Returns the size in bytes of a primitive int. |
static int |
sizeOfList(java.util.List list)
Returns the size in bytes of a List object. |
static int |
sizeOfLong()
Returns the size in bytes of a primitive long. |
static int |
sizeOfMap(java.util.Map map)
Returns the size in bytes of a Map object. |
static int |
sizeOfObject()
Returns the size in bytes of a basic Object. |
static int |
sizeOfString(java.lang.String string)
Returns the size in bytes of a String. |
static int |
sizeOfString(java.lang.String[] string)
Returns the size in bytes of a String array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static int sizeOfObject()
public static int sizeOfString(java.lang.String string)
string
- the String to determine the size of.
public static int sizeOfString(java.lang.String[] string)
string
- the String array to determine the size of.
public static int sizeOfInt()
public static int sizeOfChar()
public static int sizeOfBoolean()
public static int sizeOfLong()
public static int sizeOfDouble()
public static int sizeOfDate()
public static int sizeOfMap(java.util.Map map)
map
- the Map object to determine the size of.
public static int sizeOfList(java.util.List list)
list
- the List object to determine the size of.
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |