Record Class Nmt.Dependency
java.lang.Object
java.lang.Record
dev.lambdaurora.mcdev.api.manifest.Nmt.Dependency
- All Implemented Interfaces:
Serializable
- Enclosing class:
Nmt
public static record Nmt.Dependency(String constraint, Nmt.DependencyType type, Nmt.DependencySide side)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDependency(String constraint, Nmt.DependencyType type, Nmt.DependencySide side) Creates an instance of aDependencyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconstraintrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.side()Returns the value of thesiderecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Dependency
Creates an instance of aDependencyrecord class.- Parameters:
constraint- the value for theconstraintrecord componenttype- the value for thetyperecord componentside- the value for thesiderecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
constraint
Returns the value of theconstraintrecord component.- Returns:
- the value of the
constraintrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
side
Returns the value of thesiderecord component.- Returns:
- the value of the
siderecord component
-