Record Class DeclaredDependencies.Dependency
java.lang.Object
java.lang.Record
org.ek9lang.compiler.support.DeclaredDependencies.Dependency
- Enclosing class:
DeclaredDependencies
-
Constructor Summary
ConstructorsConstructorDescriptionDependency(String property, String moduleName, String version, org.antlr.v4.runtime.Token entry) Creates an instance of aDependencyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.antlr.v4.runtime.Tokenentry()Returns the value of theentryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themoduleNamerecord component.property()Returns the value of thepropertyrecord component.final StringtoString()Returns a string representation of this record class.vector()The dependency vector (name-version) the library knows it by.version()Returns the value of theversionrecord component.
-
Constructor Details
-
Dependency
public Dependency(String property, String moduleName, String version, org.antlr.v4.runtime.Token entry) Creates an instance of aDependencyrecord class.- Parameters:
property- the value for thepropertyrecord componentmoduleName- the value for themoduleNamerecord componentversion- the value for theversionrecord componententry- the value for theentryrecord component
-
-
Method Details
-
vector
The dependency vector (name-version) the library knows it by. -
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). -
property
Returns the value of thepropertyrecord component.- Returns:
- the value of the
propertyrecord component
-
moduleName
Returns the value of themoduleNamerecord component.- Returns:
- the value of the
moduleNamerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
entry
public org.antlr.v4.runtime.Token entry()Returns the value of theentryrecord component.- Returns:
- the value of the
entryrecord component
-