Record Class FrontendClientMetadata
java.lang.Object
java.lang.Record
org.opendaylight.controller.cluster.datastore.persisted.FrontendClientMetadata
- All Implemented Interfaces:
Immutable
,WritableObject
public record FrontendClientMetadata(@NonNull ClientIdentifier clientId, @NonNull ImmutableUnsignedLongSet purgedHistories, @NonNull ImmutableList<FrontendHistoryMetadata> currentHistories)
extends Record
implements Immutable, WritableObject
-
Constructor Summary
ConstructorsConstructorDescriptionFrontendClientMetadata
(@NonNull ClientIdentifier clientId, @NonNull ImmutableUnsignedLongSet purgedHistories, @NonNull ImmutableList<FrontendHistoryMetadata> currentHistories) Creates an instance of aFrontendClientMetadata
record class. -
Method Summary
Modifier and TypeMethodDescription@NonNull ClientIdentifier
clientId()
Returns the value of theclientId
record component.@NonNull ImmutableList
<FrontendHistoryMetadata> Returns the value of thecurrentHistories
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.@NonNull ImmutableUnsignedLongSet
Returns the value of thepurgedHistories
record component.static FrontendClientMetadata
final String
toString()
Returns a string representation of this record class.void
writeTo
(DataOutput out)
-
Constructor Details
-
FrontendClientMetadata
public FrontendClientMetadata(@NonNull ClientIdentifier clientId, @NonNull ImmutableUnsignedLongSet purgedHistories, @NonNull ImmutableList<FrontendHistoryMetadata> currentHistories) Creates an instance of aFrontendClientMetadata
record class.- Parameters:
clientId
- the value for theclientId
record componentpurgedHistories
- the value for thepurgedHistories
record componentcurrentHistories
- the value for thecurrentHistories
record component
-
-
Method Details
-
writeTo
- Specified by:
writeTo
in interfaceWritableObject
- Throws:
IOException
-
readFrom
- Throws:
IOException
-
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)
. -
clientId
Returns the value of theclientId
record component.- Returns:
- the value of the
clientId
record component
-
purgedHistories
Returns the value of thepurgedHistories
record component.- Returns:
- the value of the
purgedHistories
record component
-
currentHistories
Returns the value of thecurrentHistories
record component.- Returns:
- the value of the
currentHistories
record component
-