| Modifier and Type | Field and Description |
|---|---|
| private final Optional | location
Record Component accessed by location(). |
| private final Optional | mainClass
Record Component accessed by mainClass(). |
| private final String | |
| private final Optional |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| pack-priv Optional | |
| pack-priv static Optional | |
| pack-priv static ModuleInfo | |
| public final int | |
| public Optional | |
| public Optional | |
| public String | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| public Optional |
| location | back to summary |
|---|---|
| private final Optional<URI> location Record Component accessed by location(). | |
| mainClass | back to summary |
|---|---|
| private final Optional<String> mainClass Record Component accessed by mainClass(). | |
| name | back to summary |
|---|---|
| private final String name Record Component accessed by name(). | |
| version | back to summary |
|---|---|
| private final Optional<String> version Record Component accessed by version(). | |
| ModuleInfo | back to summary |
|---|---|
| pack-priv ModuleInfo(String name, Optional<String> version, Optional<String> mainClass, Optional<URI> location) | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| fileLocation | back to summary |
|---|---|
| pack-priv Optional | |
| fromCookedRuntime | back to summary |
|---|---|
| pack-priv static Optional | |
| fromModuleReference | back to summary |
|---|---|
| pack-priv static ModuleInfo fromModuleReference(ModuleReference mr) | |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| location | back to summary |
|---|---|
| public Optional Record Component getter of location. | |
| mainClass | back to summary |
|---|---|
| public Optional Record Component getter of mainClass. | |
| name | back to summary |
|---|---|
| public String name() Record Component getter of name. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| version | back to summary |
|---|---|
| public Optional Record Component getter of version. | |