com.jrockit.memleak.value
Class ArraySizeInfo

java.lang.Object
  extended by com.jrockit.memleak.value.ArraySizeInfo
All Implemented Interfaces:
IArraySizeInfo, IClassInfoHolder, IObjectInfoHolder, java.lang.Comparable<IArraySizeInfo>

public class ArraySizeInfo
extends java.lang.Object
implements IArraySizeInfo, IObjectInfoHolder, IClassInfoHolder

Holds information about arrays on the heap and their sizes.

Since:
Creation date: 2004-aug-30
Author:
Staffan Larsen, Helena Åberg Östlund

Field Summary
 
Fields inherited from interface com.jrockit.memleak.IArraySizeInfo
EMPTY_ARRAY
 
Constructor Summary
ArraySizeInfo(IArrayInfo arrayInfo, long size)
          Constructor.
 
Method Summary
 int compareTo(IArraySizeInfo sizeInfo)
           
 IArrayInfo getArrayInfo()
           
 IClassInfo getClassInfo()
           
 IObjectInfo getObjectInfo()
           
 long getSize()
          Returns the size of the array in bytes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArraySizeInfo

public ArraySizeInfo(IArrayInfo arrayInfo,
                     long size)
Constructor.

Parameters:
arrayInfo -
size -
Method Detail

getArrayInfo

public IArrayInfo getArrayInfo()
Specified by:
getArrayInfo in interface IArraySizeInfo
Returns:
the array info

getSize

public long getSize()
Description copied from interface: IArraySizeInfo
Returns the size of the array in bytes.

Specified by:
getSize in interface IArraySizeInfo
Returns:
#bytes

compareTo

public int compareTo(IArraySizeInfo sizeInfo)
Specified by:
compareTo in interface java.lang.Comparable<IArraySizeInfo>

getObjectInfo

public IObjectInfo getObjectInfo()
Specified by:
getObjectInfo in interface IObjectInfoHolder
Returns:
an IObjectInfo, or possibly (subject to change) null.

getClassInfo

public IClassInfo getClassInfo()
Specified by:
getClassInfo in interface IClassInfoHolder
Returns:
a IClassInfo, never null.


Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.