Record Class Pin
java.lang.Object
java.lang.Record
com.refinedmods.refinedstorage.common.grid.view.pin.Pin
-
Constructor Summary
ConstructorsConstructorDescriptionPin(GridResource gridResource, boolean manual) Creates an instance of aPinrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@Nullable PlatformResourceKeyReturns the value of thegridResourcerecord component.final inthashCode()Returns a hash code value for this object.booleanis(GridResource otherGridResource) booleanmanual()Returns the value of themanualrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Pin
Creates an instance of aPinrecord class.- Parameters:
gridResource- the value for thegridResourcerecord componentmanual- the value for themanualrecord component
-
-
Method Details
-
is
-
getAutocraftingResource
-
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. -
gridResource
Returns the value of thegridResourcerecord component.- Returns:
- the value of the
gridResourcerecord component
-
manual
public boolean manual()Returns the value of themanualrecord component.- Returns:
- the value of the
manualrecord component
-