Record Class Pattern
java.lang.Object
java.lang.Record
com.refinedmods.refinedstorage.api.autocrafting.Pattern
- Record Components:
id- the idlayout- the (non-unique) layout
@API(status=STABLE,
since="2.0.0-milestone.4.6")
public record Pattern(UUID id, PatternLayout layout)
extends Record
Represents a unique pattern, with an ID.
-
Constructor Summary
ConstructorsConstructorDescriptionPattern(UUID id, PatternLayout layout) Creates an instance of aPatternrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.layout()Returns the value of thelayoutrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
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). -
hashCode
-
toString
-
id
-
layout
-