Example usage for Java java.lang Package fields, constructors, methods, implement or subclass
The text is from its open source code.
Package | |
Package(String name, String spectitle, String specversion, String specvendor, String impltitle, String implversion, String implvendor, URL sealbase, ClassLoader loader) Construct a package instance for an unnamed module with the specified version information. | |
Package(String name, Module module) |
boolean | equals(Object obj) Indicates whether some other object is "equal to" this one. |
A | getAnnotation(Class annotationClass) |
Annotation[] | getAnnotations() |
Class> | getClass() Returns the runtime class of this Object . |
Annotation[] | getDeclaredAnnotations() |
String | getImplementationTitle() Return the title of this package. |
String | getImplementationVendor() Returns the vendor that implemented this package, null is returned if it is not known. |
String | getImplementationVersion() Return the version of this implementation. |
String | getName() Return the name of this package. |
Package | getPackage(String name) Finds a package by name in the caller's class loader and its ancestors. |
Package[] | getPackages() Returns all of the Package s defined by the caller's class loader and its ancestors. |
String | getSpecificationTitle() Return the title of the specification that this package implements. |
String | getSpecificationVendor() Return the name of the organization, vendor, or company that owns and maintains the specification of the classes that implement this package. |
String | getSpecificationVersion() Returns the version number of the specification that this package implements. |
int | hashCode() Return the hash code computed from the package name. |
boolean | isAnnotationPresent(Class extends Annotation> annotationClass) |
boolean | isCompatibleWith(String desired) Compare this package's specification version with a desired version. |
boolean | isSealed() Returns true if this package is sealed. |
boolean | isSealed(URL url) Returns true if this package is sealed with respect to the specified code source url . |
String | toString() Returns the string representation of this Package. |