Record Class BlueprintOverlayShopContext
java.lang.Object
java.lang.Record
com.simibubi.create.content.logistics.tableCloth.BlueprintOverlayShopContext
public record BlueprintOverlayShopContext(boolean checkout, int stockLevel, int purchases)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBlueprintOverlayShopContext(boolean checkout, int stockLevel, int purchases) Creates an instance of aBlueprintOverlayShopContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckout()Returns the value of thecheckoutrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thepurchasesrecord component.intReturns the value of thestockLevelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlueprintOverlayShopContext
public BlueprintOverlayShopContext(boolean checkout, int stockLevel, int purchases) Creates an instance of aBlueprintOverlayShopContextrecord class.- Parameters:
checkout- the value for thecheckoutrecord componentstockLevel- the value for thestockLevelrecord componentpurchases- the value for thepurchasesrecord 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 '=='. -
checkout
public boolean checkout()Returns the value of thecheckoutrecord component.- Returns:
- the value of the
checkoutrecord component
-
stockLevel
public int stockLevel()Returns the value of thestockLevelrecord component.- Returns:
- the value of the
stockLevelrecord component
-
purchases
public int purchases()Returns the value of thepurchasesrecord component.- Returns:
- the value of the
purchasesrecord component
-