Package overit.geocall.da
Record Class TablesWithAliases
java.lang.Object
java.lang.Record
overit.geocall.da.TablesWithAliases
- All Implemented Interfaces:
Serializable
public record TablesWithAliases(Map<String,String> tableAliases)
extends Record
implements Serializable
Record representing a collection of database tables and their corresponding aliases.
Provides a builder pattern for convenient instantiation.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class forTablesWithAliases, allowing step-by-step addition of table-alias pairs. -
Constructor Summary
ConstructorsConstructorDescriptionTablesWithAliases(Map<String, String> tableAliases) Creates an instance of aTablesWithAliasesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic TablesWithAliases.Builderbuilder()Creates a new builder forTablesWithAliases.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 thetableAliasesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TablesWithAliases
Creates an instance of aTablesWithAliasesrecord class.- Parameters:
tableAliases- the value for thetableAliasesrecord component
-
-
Method Details
-
builder
Creates a new builder forTablesWithAliases.- Returns:
- a new instance of
TablesWithAliases.Builder.
-
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). -
tableAliases
Returns the value of thetableAliasesrecord component.- Returns:
- the value of the
tableAliasesrecord component
-