java.lang.Object
java.lang.Record
org.aya.resolve.context.ModuleName.Qualified
- All Implemented Interfaces:
Serializable,ModuleName
- Enclosing interface:
ModuleName
public static record ModuleName.Qualified(@NotNull kala.collection.immutable.ImmutableSeq<String> ids)
extends Record
implements ModuleName
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.resolve.context.ModuleName
ModuleName.Qualified, ModuleName.ThisRef -
Field Summary
Fields inherited from interface org.aya.resolve.context.ModuleName
This -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull ModuleName.Qualifiedconcat(@NotNull ModuleName path) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull kala.collection.immutable.ImmutableSeq<String>ids()Returns the value of theidsrecord component.@NotNull ModuleName.Qualifiedintsize()@NotNull StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Qualified
-
Qualified
Creates an instance of aQualifiedrecord class.- Parameters:
ids- the value for theidsrecord component
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceModuleName
-
resolve
- Specified by:
resolvein interfaceModuleName
-
concat
- Specified by:
concatin interfaceModuleName
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.- Specified by:
toStringin interfaceModuleName- Specified by:
toStringin classRecord- Returns:
- a string representation of this object
-
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
ids
Returns the value of theidsrecord component.- Specified by:
idsin interfaceModuleName- Returns:
- the value of the
idsrecord component
-