Record Class RepositoryReplicaIdentity
java.lang.Object
java.lang.Record
org.j7m.middleware.application.api.replication.RepositoryReplicaIdentity
- Record Components:
id- stable replica iddisplayName- safe operator-facing namemetadata- redacted metadata
- All Implemented Interfaces:
Serializable
public record RepositoryReplicaIdentity(RepositoryReplicaId id, String displayName, Map<String,String> metadata)
extends Record
implements Serializable
Safe public identity for one repository replica.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRepositoryReplicaIdentity(RepositoryReplicaId id, String displayName, Map<String, String> metadata) Creates a validated immutable identity. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.metadata()Returns the value of themetadatarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RepositoryReplicaIdentity
public RepositoryReplicaIdentity(RepositoryReplicaId id, String displayName, Map<String, String> metadata) Creates a validated immutable identity.
-
-
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). -
id
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
metadata
-