APIdia Launch Partner
Top Fields Constructors Methods
jdk.internal.constant

public final Record ModuleDescImpl

extends Record
implements ModuleDesc
Class Inheritance
All Implemented Interfaces
java.lang.constant.ModuleDesc
Record Components
name:String 
Imports
java.lang.constant.ModuleDesc

Field Summary

Modifier and TypeField and Description
private final String
name

Record Component accessed by name().

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final boolean
equals(Object o)

Implements abstract java.lang.Record.equals.

Implements java.lang.constant.ModuleDesc.equals.

Compare the specified object with this descriptor for equality.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public String
name()

Record Component getter of name.

Implements java.lang.constant.ModuleDesc.name.

Returns the module name of this ModuleDesc.

public String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

nameback to summary
private final String name

Record Component accessed by name().

Constructor Detail

ModuleDescImplback to summary
public ModuleDescImpl(String name)

Method Detail

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Implements java.lang.constant.ModuleDesc.equals.

Doc from java.lang.constant.ModuleDesc.equals.

Compare the specified object with this descriptor for equality. Returns true if and only if the specified object is also a ModuleDesc and both describe the same module.

hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

nameback to summary
public String name()

Record Component getter of name.

Implements java.lang.constant.ModuleDesc.name.

Doc from java.lang.constant.ModuleDesc.name.

Returns the module name of this ModuleDesc.

toStringback to summary
public String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

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.

Annotations
@Override