Record Class PingResult
java.lang.Object
java.lang.Record
com.mojang.realmsclient.dto.PingResult
- All Implemented Interfaces:
ReflectionBasedSerialization
public record PingResult(List<RegionPingResult> pingResults, List<Long> realmIds)
extends Record
implements ReflectionBasedSerialization
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<RegionPingResult> The field for thepingResultsrecord component.The field for therealmIdsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPingResult(List<RegionPingResult> pingResults, List<Long> realmIds) Creates an instance of aPingResultrecord 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.Returns the value of thepingResultsrecord component.realmIds()Returns the value of therealmIdsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
pingResults
The field for thepingResultsrecord component. -
realmIds
The field for therealmIdsrecord component.
-
-
Constructor Details
-
PingResult
Creates an instance of aPingResultrecord class.- Parameters:
pingResults- the value for thepingResultsrecord componentrealmIds- the value for therealmIdsrecord 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). -
pingResults
Returns the value of thepingResultsrecord component.- Returns:
- the value of the
pingResultsrecord component
-
realmIds
Returns the value of therealmIdsrecord component.- Returns:
- the value of the
realmIdsrecord component
-