Module com.github.sormuras.bach
Package com.github.sormuras.bach
Record Class ServiceFinder.ModuleLayerServiceFinder<S>
java.lang.Object
java.lang.Record
com.github.sormuras.bach.ServiceFinder.ModuleLayerServiceFinder<S>
- All Implemented Interfaces:
ServiceFinder<S>
- Enclosing interface:
- ServiceFinder<S>
public static record ServiceFinder.ModuleLayerServiceFinder<S>(ModuleLayer layer, ServiceLoader<S> loader)
extends Record
implements ServiceFinder<S>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.sormuras.bach.ServiceFinder
ServiceFinder.ModuleLayerServiceFinder<S>, ServiceFinder.ServiceLoaderServiceFinder<S>
-
Constructor Summary
ConstructorDescriptionModuleLayerServiceFinder
(ModuleLayer layer, ServiceLoader<S> loader) Creates an instance of aModuleLayerServiceFinder
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.findAll()
final int
hashCode()
Returns a hash code value for this object.layer()
Returns the value of thelayer
record component.loader()
Returns the value of theloader
record component.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.github.sormuras.bach.ServiceFinder
find, list, nameOf
-
Constructor Details
-
ModuleLayerServiceFinder
Creates an instance of aModuleLayerServiceFinder
record class.- Parameters:
layer
- the value for thelayer
record componentloader
- the value for theloader
record component
-
-
Method Details
-
findAll
- Specified by:
findAll
in interfaceServiceFinder<S>
-
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
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)
. -
layer
Returns the value of thelayer
record component.- Returns:
- the value of the
layer
record component
-
loader
Returns the value of theloader
record component.- Returns:
- the value of the
loader
record component
-