Record Class SaleState
java.lang.Object
java.lang.Record
dev.despical.spigotsaleswebhook.state.SaleState
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SaleStateempty()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theinitializedrecord component.markInitialized(Map<String, Set<String>> keysByPlugin) Returns the value of theseenSalesByPluginrecord component.seenSalesFor(String pluginName) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SaleState
-
-
Method Details
-
empty
-
seenSalesFor
-
markInitialized
-
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. -
initialized
public boolean initialized()Returns the value of theinitializedrecord component.- Returns:
- the value of the
initializedrecord component
-
seenSalesByPlugin
-