Package no.marec.lsss.api.modules
Record Class ModuleRegistry.RelativePosition.After
java.lang.Object
java.lang.Record
no.marec.lsss.api.modules.ModuleRegistry.RelativePosition.After
- Record Components:
refId- the id of the referenced module
- All Implemented Interfaces:
ModuleRegistry.RelativePosition
- Enclosing interface:
ModuleRegistry.RelativePosition
public static record ModuleRegistry.RelativePosition.After(String refId)
extends Record
implements ModuleRegistry.RelativePosition
Place after the referenced module.
-
Nested Class Summary
Nested classes/interfaces inherited from interface no.marec.lsss.api.modules.ModuleRegistry.RelativePosition
ModuleRegistry.RelativePosition.After, ModuleRegistry.RelativePosition.Before, ModuleRegistry.RelativePosition.Default -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.refId()Returns the value of therefIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
After
Creates an instance of aAfterrecord class.- Parameters:
refId- the value for therefIdrecord 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). -
refId
Returns the value of therefIdrecord component.- Returns:
- the value of the
refIdrecord component
-