Record Class DomainReplicaId
java.lang.Object
java.lang.Record
org.opends.server.replication.server.changelog.api.DomainReplicaId
- Record Components:
baseDn- domain baseDN, cannot be nullreplicaId- replicaId within the domain
- All Implemented Interfaces:
Comparable<DomainReplicaId>
public record DomainReplicaId(Dn baseDn, ReplicaId replicaId)
extends Record
implements Comparable<DomainReplicaId>
Identifier comprised of the domain baseDN and its replicaId within this domain.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceMarker annotation during the migration. -
Constructor Summary
ConstructorsConstructorDescriptionDomainReplicaId(Dn baseDn, ReplicaId replicaId) Creates an instance of aDomainReplicaIdrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbaseDn()Returns the value of thebaseDnrecord component.intfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static DomainReplicaIdCreates a ReplicaId with the provided parameters.Returns the value of thereplicaIdrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
of
Creates a ReplicaId with the provided parameters.- Parameters:
baseDN- domain baseDNreplicaId- replicaId within the domain- Returns:
- a new ReplicaId
-
compareTo
- Specified by:
compareToin interfaceComparable<DomainReplicaId>
-
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). -
baseDn
Returns the value of thebaseDnrecord component.- Returns:
- the value of the
baseDnrecord component
-
replicaId
Returns the value of thereplicaIdrecord component.- Returns:
- the value of the
replicaIdrecord component
-