com.jrockit.memleak.mlp
Class JoinedTypeHeapInfo

java.lang.Object
  extended by com.jrockit.memleak.value.HeapInfo
      extended by com.jrockit.memleak.mlp.JoinedTypeHeapInfo
All Implemented Interfaces:
IHeapHistogram, IHeapInfo, INamedType, ITypeHeapInfo<INamedType>, ITypeSpecifier, java.lang.Iterable<ITypeHeapInfo<IClassInfo>>

public class JoinedTypeHeapInfo
extends HeapInfo
implements INamedType, ITypeHeapInfo<INamedType>, IHeapHistogram

Author:
mpersson

Field Summary
 
Fields inherited from class com.jrockit.memleak.value.HeapInfo
growthRate, numInstances, size
 
Fields inherited from interface com.jrockit.memleak.ITypeHeapInfo
EMPTY_ARRAY
 
Method Summary
protected  boolean equals(JoinedTypeHeapInfo other)
           
 boolean equals(java.lang.Object other)
           
 java.util.Collection<? extends ITypeHeapInfo<?>> getGroupedTypeHeapInfos()
           
 java.lang.String getName()
          Returns the name of the entity (class, interface, array class, primitive type, or void) represented by this INamedType object.
 INamedType getType()
           
 java.util.Collection<ITypeHeapInfo<IClassInfo>> getTypeHeapInfos()
           
 int hashCode()
           
 java.util.Iterator<ITypeHeapInfo<IClassInfo>> iterator()
           
<T> T
select(ITypeResolver<T> resolver)
          Select the type or types using operations on resolver.
 
Methods inherited from class com.jrockit.memleak.value.HeapInfo
equals, getGrowthRate, getNumberOfInstances, getSizeOfInstances, getTime, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.jrockit.memleak.IHeapInfo
getGrowthRate, getNumberOfInstances, getSizeOfInstances, getTime
 

Method Detail

getName

public java.lang.String getName()
Description copied from interface: INamedType
Returns the name of the entity (class, interface, array class, primitive type, or void) represented by this INamedType object.

Specified by:
getName in interface INamedType
Returns:
the name of the class represented by this INamedType object.
See Also:
Class.getName()

select

public <T> T select(ITypeResolver<T> resolver)
Description copied from interface: ITypeSpecifier
Select the type or types using operations on resolver.

NOTE: It is strictly forbidden to keep a reference to the given resolver (including weak references etc.) as well as any type of caching based on values returned from the resolver. Only the resolver itself is capable of determining if results may be cached.

Specified by:
select in interface ITypeSpecifier
Returns:
a resolved type

getType

public INamedType getType()
Specified by:
getType in interface ITypeHeapInfo<INamedType>
Returns:
the INamedType implementor this instance has heap usage data for.

iterator

public java.util.Iterator<ITypeHeapInfo<IClassInfo>> iterator()
Specified by:
iterator in interface java.lang.Iterable<ITypeHeapInfo<IClassInfo>>

getTypeHeapInfos

public java.util.Collection<ITypeHeapInfo<IClassInfo>> getTypeHeapInfos()
Specified by:
getTypeHeapInfos in interface IHeapHistogram
Returns:
a collection of ITypeHeapInfo:s.

getGroupedTypeHeapInfos

public java.util.Collection<? extends ITypeHeapInfo<?>> getGroupedTypeHeapInfos()
Specified by:
getGroupedTypeHeapInfos in interface IHeapHistogram
Returns:
a collection of ITypeHeapInfo:s.

hashCode

public int hashCode()
Specified by:
hashCode in class HeapInfo

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class HeapInfo

equals

protected boolean equals(JoinedTypeHeapInfo other)
Parameters:
other - an JoinedTypeHeapInfo
Returns:
true iff other represent the same class name in the JVM.
See Also:
Object.equals(Object)


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