Record Class StorageContents.Changed
java.lang.Object
java.lang.Record
com.refinedmods.refinedstorage.common.api.storage.StorageContents.Changed
- Enclosing class:
StorageContents
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongat()Returns the value of theatrecord component.by()Returns the value of thebyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Changed
Creates an instance of aChangedrecord class.- Parameters:
by- the value for thebyrecord componentat- the value for theatrecord component
-
-
Method Details
-
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. -
by
Returns the value of thebyrecord component.- Returns:
- the value of the
byrecord component
-
at
public long at()Returns the value of theatrecord component.- Returns:
- the value of the
atrecord component
-