Record Class JavaModuleProvide
java.lang.Object
java.lang.Record
dev.archunitjava.model.JavaModuleProvide
- All Implemented Interfaces:
Comparable<JavaModuleProvide>
public record JavaModuleProvide(JvmReferenceType service, List<JvmReferenceType> providers)
extends Record
implements Comparable<JavaModuleProvide>
One unresolved service-provider declaration.
-
Constructor Summary
ConstructorsConstructorDescriptionJavaModuleProvide(JvmReferenceType service, List<JvmReferenceType> providers) Creates an instance of aJavaModuleProviderecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(JavaModuleProvide other) 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 theprovidersrecord component.service()Returns the value of theservicerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JavaModuleProvide
Creates an instance of aJavaModuleProviderecord class.- Parameters:
service- the value for theservicerecord componentproviders- the value for theprovidersrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<JavaModuleProvide>
-
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). -
service
Returns the value of theservicerecord component.- Returns:
- the value of the
servicerecord component
-
providers
Returns the value of theprovidersrecord component.- Returns:
- the value of the
providersrecord component
-