Record Class FD_SOCK2.Request
java.lang.Object
java.lang.Record
org.jgroups.protocols.FD_SOCK2.Request
- Enclosing class:
FD_SOCK2
protected static record FD_SOCK2.Request(FD_SOCK2.Request.Type type, Address suspect)
extends Record
- Author:
- Bela Ban April 27 2021
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRequest(FD_SOCK2.Request.Type type, Address suspect) Creates an instance of aRequestrecord class. -
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.suspect()Returns the value of thesuspectrecord component.toString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Request
Creates an instance of aRequestrecord class.- Parameters:
type- the value for thetyperecord componentsuspect- the value for thesuspectrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
suspect
Returns the value of thesuspectrecord component.- Returns:
- the value of the
suspectrecord component
-