Package java.lang

## Class Package

- java.lang.Object
- - java.lang.Package

- All Implemented Interfaces:
    `AnnotatedElement`

      public class Package
      extends Object
      implements AnnotatedElement

  `Package` represent a Java package.

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `Package()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `String` | `getName()` | Return the name of this package.
    `int` | `hashCode()` | Return the hash code computed from the package name.
    `String` | `toString()` | Returns the string representation of this Package.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### Package

          public Package()

  - ### Method Detail

    - #### getName

          public String getName()

      Return the name of this package.
      Returns:
        The fully-qualified name of this package as defined in section 6.5.3 of The Java™ Language Specification, for example, `java.lang`

    - #### hashCode

          public int hashCode()

      Return the hash code computed from the package name.
      Overrides:
        `hashCode` in class `Object`
      Returns:
        the hash code computed from the package name.
      See Also:
        `Object.equals(java.lang.Object)`, `System.identityHashCode(java.lang.Object)`

    - #### toString

          public String toString()

      Returns the string representation of this Package. Its value is the string "package " and the package name. If the package title is defined it is appended. If the package version is defined it is appended.
      Overrides:
        `toString` in class `Object`
      Returns:
        the string representation of the package.