Record Class DefaultServiceRegistry.RegistryEntry<T>
java.lang.Object
java.lang.Record
eu.cloudnetservice.driver.registry.DefaultServiceRegistry.RegistryEntry<T>
- Type Parameters:
T- the type of the registered provider.- Record Components:
name- the name of the registered provider.provider- the provider instance associated with the entry.
- Enclosing class:
DefaultServiceRegistry
private static record DefaultServiceRegistry.RegistryEntry<T>(@NonNull String name, T provider)
extends Record
A registered entry in the service registry.
- Since:
- 4.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateRegistryEntry(@NonNull String name, T provider) Creates an instance of aRegistryEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.provider()Returns the value of theproviderrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
name
-
provider
-
-
Constructor Details
-
RegistryEntry
-
-
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). -
name
-
provider
-