java.lang.Object
java.lang.Record
org.aya.concrete.stmt.UseHide.Rename
- All Implemented Interfaces:
Serializable
- Enclosing class:
UseHide
public static record UseHide.Rename(@NotNull kala.collection.immutable.ImmutableSeq<String> fromModule, @NotNull String name, @NotNull String to)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NotNull kala.collection.immutable.ImmutableSeq<String>Returns the value of thefromModulerecord component.final inthashCode()Returns a hash code value for this object.@NotNull Stringname()Returns the value of thenamerecord component.@NotNull Stringto()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Rename
public Rename(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<String> fromModule, @NotNull @NotNull String name, @NotNull @NotNull String to) Creates an instance of aRenamerecord class.- Parameters:
fromModule- the value for thefromModulerecord componentname- the value for thenamerecord componentto- the value for thetorecord component
-
-
Method Details
-
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. -
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). -
fromModule
Returns the value of thefromModulerecord component.- Returns:
- the value of the
fromModulerecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
to
Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-