Contents
Record Class Prefetch.Budget
java.lang.Object
java.lang.Record
com.hypixel.hytale.builtin.buildertools.world.Prefetch.Budget
- Enclosing class:
Prefetch
How much a single load may bring in. The caller passes its own, so what a load costs is decided where
the configuration is read rather than by whatever the last reload wrote into a shared field.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBudget(int maxColumns, int maxSections) Creates an instance of aBudgetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanfitsColumns(long columns) booleanfitsSections(long sections) final inthashCode()Returns a hash code value for this object.intReturns the value of themaxColumnsrecord component.intReturns the value of themaxSectionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
Budget
public Budget(int maxColumns, int maxSections) Creates an instance of aBudgetrecord class.- Parameters:
maxColumns- the value for themaxColumnsrecord componentmaxSections- the value for themaxSectionsrecord component
-
-
Method Details
-
fitsColumns
public boolean fitsColumns(long columns) -
fitsSections
public boolean fitsSections(long sections) -
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 with thecomparemethod from their corresponding wrapper classes. -
maxColumns
public int maxColumns()Returns the value of themaxColumnsrecord component.- Returns:
- the value of the
maxColumnsrecord component
-
maxSections
public int maxSections()Returns the value of themaxSectionsrecord component.- Returns:
- the value of the
maxSectionsrecord component
-