Package com.reign.api.kat.responses
Record Class GuildsResponse
java.lang.Object
java.lang.Record
com.reign.api.kat.responses.GuildsResponse
- 
Constructor SummaryConstructorsConstructorDescriptionGuildsResponse(ArrayList<ApiGuild> guilds, String message, String err, int status) Creates an instance of aGuildsResponserecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.err()Returns the value of theerrrecord component.guilds()Returns the value of theguildsrecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.intstatus()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
- 
Constructor Details- 
GuildsResponseCreates an instance of aGuildsResponserecord class.- Parameters:
- guilds- the value for the- guildsrecord component
- message- the value for the- messagerecord component
- err- the value for the- errrecord component
- status- the value for the- statusrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
guildsReturns the value of theguildsrecord component.- Returns:
- the value of the guildsrecord component
 
- 
messageReturns the value of themessagerecord component.- Returns:
- the value of the messagerecord component
 
- 
errReturns the value of theerrrecord component.- Returns:
- the value of the errrecord component
 
- 
statuspublic int status()Returns the value of thestatusrecord component.- Returns:
- the value of the statusrecord component
 
 
-