Record Class DataTreeCandidateInputOutput.DataTreeCandidateWithVersion
java.lang.Object
java.lang.Record
org.opendaylight.controller.cluster.datastore.persisted.DataTreeCandidateInputOutput.DataTreeCandidateWithVersion
- All Implemented Interfaces:
Immutable
- Enclosing class:
- DataTreeCandidateInputOutput
public static record DataTreeCandidateInputOutput.DataTreeCandidateWithVersion(@NonNull DataTreeCandidate candidate, @NonNull NormalizedNodeStreamVersion version)
extends Record
implements Immutable
-
Constructor Summary
ConstructorsConstructorDescriptionDataTreeCandidateWithVersion
(@NonNull DataTreeCandidate candidate, @NonNull NormalizedNodeStreamVersion version) Creates an instance of aDataTreeCandidateWithVersion
record class. -
Method Summary
Modifier and TypeMethodDescription@NonNull DataTreeCandidate
Returns the value of thecandidate
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.@NonNull NormalizedNodeStreamVersion
version()
Returns the value of theversion
record component.
-
Constructor Details
-
DataTreeCandidateWithVersion
public DataTreeCandidateWithVersion(@NonNull DataTreeCandidate candidate, @NonNull NormalizedNodeStreamVersion version) Creates an instance of aDataTreeCandidateWithVersion
record class.- Parameters:
candidate
- the value for thecandidate
record componentversion
- the value for theversion
record component
-
-
Method Details
-
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)
. -
candidate
Returns the value of thecandidate
record component.- Returns:
- the value of the
candidate
record component
-
version
Returns the value of theversion
record component.- Returns:
- the value of the
version
record component
-