Package dev.pfaff.discordrpc
Record Class ActivityParty
java.lang.Object
java.lang.Record
dev.pfaff.discordrpc.ActivityParty
public record ActivityParty(@dev.pfaff.discordrpc.Unsigned int id, @dev.pfaff.discordrpc.Unsigned int minSize, @dev.pfaff.discordrpc.Unsigned int maxSize)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionActivityParty(@dev.pfaff.discordrpc.Unsigned int id, @dev.pfaff.discordrpc.Unsigned int minSize, @dev.pfaff.discordrpc.Unsigned int maxSize) Creates an instance of aActivityPartyrecord 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.@dev.pfaff.discordrpc.Unsigned intid()Returns the value of theidrecord component.@dev.pfaff.discordrpc.Unsigned intmaxSize()Returns the value of themaxSizerecord component.@dev.pfaff.discordrpc.Unsigned intminSize()Returns the value of theminSizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ActivityParty
public ActivityParty(@dev.pfaff.discordrpc.Unsigned int id, @dev.pfaff.discordrpc.Unsigned int minSize, @dev.pfaff.discordrpc.Unsigned int maxSize) Creates an instance of aActivityPartyrecord class.- Parameters:
id- the value for theidrecord componentminSize- the value for theminSizerecord componentmaxSize- the value for themaxSizerecord 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 with '=='. -
id
public @dev.pfaff.discordrpc.Unsigned int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
minSize
public @dev.pfaff.discordrpc.Unsigned int minSize()Returns the value of theminSizerecord component.- Returns:
- the value of the
minSizerecord component
-
maxSize
public @dev.pfaff.discordrpc.Unsigned int maxSize()Returns the value of themaxSizerecord component.- Returns:
- the value of the
maxSizerecord component
-