Record Class BedrockSocialService.FriendRequests
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.friends.BedrockSocialService.FriendRequests
- Enclosing class:
BedrockSocialService
public static record BedrockSocialService.FriendRequests(List<BedrockSocialService.SocialUser> incoming, List<BedrockSocialService.SocialUser> outgoing)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFriendRequests(List<BedrockSocialService.SocialUser> incoming, List<BedrockSocialService.SocialUser> outgoing) Creates an instance of aFriendRequestsrecord 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.incoming()Returns the value of theincomingrecord component.outgoing()Returns the value of theoutgoingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FriendRequests
public FriendRequests(List<BedrockSocialService.SocialUser> incoming, List<BedrockSocialService.SocialUser> outgoing) Creates an instance of aFriendRequestsrecord class.- Parameters:
incoming- the value for theincomingrecord componentoutgoing- the value for theoutgoingrecord 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). -
incoming
Returns the value of theincomingrecord component.- Returns:
- the value of the
incomingrecord component
-
outgoing
Returns the value of theoutgoingrecord component.- Returns:
- the value of the
outgoingrecord component
-