Record Class ContainerSnapshot
java.lang.Object
java.lang.Record
com.ultikits.ultitools.ui.ContainerSnapshot
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionContainerSnapshot(List<org.bukkit.inventory.ItemStack> contents, List<org.bukkit.inventory.ItemStack> baseline, long sequence) Copies both lists. -
Method Summary
Modifier and TypeMethodDescriptionList<org.bukkit.inventory.ItemStack> baseline()Copies of the baseline being replaced.List<org.bukkit.inventory.ItemStack> contents()Copies of the contents to write.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longsequence()Returns the value of thesequencerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
contents
The field for thecontentsrecord component. -
baseline
The field for thebaselinerecord component. -
sequence
private final long sequenceThe field for thesequencerecord component.
-
-
Constructor Details
-
ContainerSnapshot
-
-
Method Details
-
contents
Copies of the contents to write. -
baseline
Copies of the baseline being replaced. -
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. -
sequence
public long sequence()Returns the value of thesequencerecord component.- Returns:
- the value of the
sequencerecord component
-