Record Class ReplCache.Value<V>
java.lang.Object
java.lang.Record
org.jgroups.blocks.ReplCache.Value<V>
- All Implemented Interfaces:
Serializable
public static record ReplCache.Value<V>(V val, short replication_count)
extends Record
implements Serializable
- Author:
- Bela Ban
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.shortReturns the value of thereplication_countrecord component.toString()Returns a string representation of this record class.val()Returns the value of thevalrecord component.
-
Constructor Details
-
Value
Creates an instance of aValuerecord class.- Parameters:
val- the value for thevalrecord componentreplication_count- the value for thereplication_countrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
val
Returns the value of thevalrecord component.- Returns:
- the value of the
valrecord component
-
replication_count
public short replication_count()Returns the value of thereplication_countrecord component.- Returns:
- the value of the
replication_countrecord component
-