Package ch.rswk.meta.engine
Record Class DatabaseService.DatabaseServiceConfig
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.DatabaseService.DatabaseServiceConfig
- Enclosing class:
DatabaseService
public static record DatabaseService.DatabaseServiceConfig(@Nullable Set<DatabaseService.DatabaseServiceDataSourceConfig> dataSources)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable Set<DatabaseService.DatabaseServiceDataSourceConfig> The field for thedataSourcesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDatabaseServiceConfig(@Nullable Set<DatabaseService.DatabaseServiceDataSourceConfig> dataSources) Creates an instance of aDatabaseServiceConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedataSourcesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
dataSources
The field for thedataSourcesrecord component.
-
-
Constructor Details
-
DatabaseServiceConfig
public DatabaseServiceConfig(@Nullable Set<DatabaseService.DatabaseServiceDataSourceConfig> dataSources) Creates an instance of aDatabaseServiceConfigrecord class.- Parameters:
dataSources- the value for thedataSourcesrecord component
-
-
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). -
dataSources
Returns the value of thedataSourcesrecord component.- Returns:
- the value of the
dataSourcesrecord component
-