Record Class VERIFY_SUSPECT2.Entry
java.lang.Object
java.lang.Record
org.jgroups.protocols.VERIFY_SUSPECT2.Entry
- All Implemented Interfaces:
Comparable<VERIFY_SUSPECT2.Entry>
- Enclosing class:
VERIFY_SUSPECT2
protected static record VERIFY_SUSPECT2.Entry(Address suspect, long target_time)
extends Record
implements Comparable<VERIFY_SUSPECT2.Entry>
- Author:
- Bela Ban
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanIndicates whether some other object is "equal to" this one.protected longexpiry()inthashCode()Returns a hash code value for this object.suspect()Returns the value of thesuspectrecord component.longReturns the value of thetarget_timerecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Entry
Creates an instance of aEntryrecord class.- Parameters:
suspect- the value for thesuspectrecord componenttarget_time- the value for thetarget_timerecord component
-
-
Method Details
-
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. -
hashCode
-
toString
-
expiry
protected long expiry() -
compareTo
- Specified by:
compareToin interfaceComparable<VERIFY_SUSPECT2.Entry>
-
suspect
Returns the value of thesuspectrecord component.- Returns:
- the value of the
suspectrecord component
-
target_time
public long target_time()Returns the value of thetarget_timerecord component.- Returns:
- the value of the
target_timerecord component
-