Record Class RootScatterGather.ShardContainer<T>
java.lang.Object
java.lang.Record
org.opendaylight.controller.cluster.datastore.utils.RootScatterGather.ShardContainer<T>
- Enclosing class:
RootScatterGather
@NonNullByDefault
public static record RootScatterGather.ShardContainer<T>(T shard, ContainerNode container)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionShardContainer
(T shard, ContainerNode container) Creates an instance of aShardContainer
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontainer
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.shard()
Returns the value of theshard
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
ShardContainer
Creates an instance of aShardContainer
record class.- Parameters:
shard
- the value for theshard
record componentcontainer
- the value for thecontainer
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)
. -
shard
Returns the value of theshard
record component.- Returns:
- the value of the
shard
record component
-
container
Returns the value of thecontainer
record component.- Returns:
- the value of the
container
record component
-