Package org.openjdk.jmc.common.util
Class MCPackage
java.lang.Object
org.openjdk.jmc.common.util.MCPackage
- All Implemented Interfaces:
IDescribable
,IMCPackage
Base implementation of the
IMCPackage
interface.-
Method Summary
-
Method Details
-
getName
Description copied from interface:IMCPackage
Returns the package name.An example is "java.lang".
- Specified by:
getName
in interfaceIDescribable
- Specified by:
getName
in interfaceIMCPackage
- Returns:
- package name
-
getModule
- Specified by:
getModule
in interfaceIMCPackage
- Returns:
- the module in which this package resides, or null if it's in a pre-modules environment
-
isExported
- Specified by:
isExported
in interfaceIMCPackage
- Returns:
true
if the package is exported from it's module, or if it's in a pre modules environment,false
otherwise
-
toString
-
getDescription
- Specified by:
getDescription
in interfaceIDescribable
- Returns:
- the description of this object
-
hashCode
public int hashCode() -
equals
-