Record Class DataNodeDescriptors
java.lang.Object
java.lang.Record
org.apache.cayenne.configuration.DataNodeDescriptors
public record DataNodeDescriptors(Map<DataNodeDescriptor, Set<String>> mapsByNode, DataNodeDescriptor defaultNode)
extends Record
- Since:
- 5.0
-
Constructor Summary
ConstructorsConstructorDescriptionDataNodeDescriptors(Map<DataNodeDescriptor, Set<String>> mapsByNode, DataNodeDescriptor defaultNode) Creates an instance of aDataNodeDescriptorsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefaultNoderecord 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 themapsByNoderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DataNodeDescriptors
public DataNodeDescriptors(Map<DataNodeDescriptor, Set<String>> mapsByNode, DataNodeDescriptor defaultNode) Creates an instance of aDataNodeDescriptorsrecord class.- Parameters:
mapsByNode- the value for themapsByNoderecord componentdefaultNode- the value for thedefaultNoderecord 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). -
mapsByNode
Returns the value of themapsByNoderecord component.- Returns:
- the value of the
mapsByNoderecord component
-
defaultNode
Returns the value of thedefaultNoderecord component.- Returns:
- the value of the
defaultNoderecord component
-