java.lang.Object
java.lang.Record
org.tentackle.common.ServiceFinderKey
- Record Components:
classLoader- the classloaderservicePath- the service path
Key to map service finders.
- Author:
- harald
-
Constructor Summary
ConstructorsConstructorDescriptionServiceFinderKey(ClassLoader classLoader, String servicePath) Creates an instance of aServiceFinderKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassLoaderrecord 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 theservicePathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ServiceFinderKey
Creates an instance of aServiceFinderKeyrecord class.- Parameters:
classLoader- the value for theclassLoaderrecord componentservicePath- the value for theservicePathrecord 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). -
classLoader
Returns the value of theclassLoaderrecord component.- Returns:
- the value of the
classLoaderrecord component
-
servicePath
Returns the value of theservicePathrecord component.- Returns:
- the value of the
servicePathrecord component
-