Record Class WorldTemplatePaginatedList
java.lang.Object
java.lang.Record
com.mojang.realmsclient.dto.WorldTemplatePaginatedList
public record WorldTemplatePaginatedList(List<WorldTemplate> templates, int page, int size, int total)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate final intThe field for thepagerecord component.private final intThe field for thesizerecord component.private final List<WorldTemplate> The field for thetemplatesrecord component.private final intThe field for thetotalrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionWorldTemplatePaginatedList(int size) WorldTemplatePaginatedList(List<WorldTemplate> templates, int page, int size, int total) Creates an instance of aWorldTemplatePaginatedListrecord 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.booleanintpage()Returns the value of thepagerecord component.static WorldTemplatePaginatedListintsize()Returns the value of thesizerecord component.Returns the value of thetemplatesrecord component.final StringtoString()Returns a string representation of this record class.inttotal()Returns the value of thetotalrecord component.
-
Field Details
-
templates
The field for thetemplatesrecord component. -
page
private final int pageThe field for thepagerecord component. -
size
private final int sizeThe field for thesizerecord component. -
total
private final int totalThe field for thetotalrecord component. -
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
WorldTemplatePaginatedList
public WorldTemplatePaginatedList(int size) -
WorldTemplatePaginatedList
Creates an instance of aWorldTemplatePaginatedListrecord class.- Parameters:
templates- the value for thetemplatesrecord componentpage- the value for thepagerecord componentsize- the value for thesizerecord componenttotal- the value for thetotalrecord component
-
-
Method Details
-
isLastPage
public boolean isLastPage() -
parse
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
templates
Returns the value of thetemplatesrecord component.- Returns:
- the value of the
templatesrecord component
-
page
public int page()Returns the value of thepagerecord component.- Returns:
- the value of the
pagerecord component
-
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
total
public int total()Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-