Record Class Listing
java.lang.Object
java.lang.Record
de.chojo.universalis.entities.Listing
- Record Components:
lastReviewTime- The time that this listing was posted.world- the worldcreator- the creatormeta- item metalistingId- A SHA256 hash of the ID of this listing. Due to some current client-side bugs, this will almost always be null.onMannequin- Whether the item is being sold on a mannequin.retainer- the retainer datasellerId- A SHA256 hash of the seller's ID.price- the pricetax- The tax that will be added on top of the price.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreator()Returns the value of thecreatorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelastReviewTimerecord component.Returns the value of thelistingIdrecord component.meta()Returns the value of themetarecord component.booleanReturns the value of theonMannequinrecord component.price()Returns the value of thepricerecord component.retainer()Returns the value of theretainerrecord component.sellerId()Returns the value of thesellerIdrecord component.inttax()Returns the value of thetaxrecord component.final StringtoString()Returns a string representation of this record class.world()Returns the value of theworldrecord component.
-
Constructor Details
-
Listing
public Listing(Instant lastReviewTime, World world, Creator creator, ItemMeta meta, String listingId, boolean onMannequin, Retainer retainer, String sellerId, Price price, int tax) Creates an instance of aListingrecord class.- Parameters:
lastReviewTime- the value for thelastReviewTimerecord componentworld- the value for theworldrecord componentcreator- the value for thecreatorrecord componentmeta- the value for themetarecord componentlistingId- the value for thelistingIdrecord componentonMannequin- the value for theonMannequinrecord componentretainer- the value for theretainerrecord componentsellerId- the value for thesellerIdrecord componentprice- the value for thepricerecord componenttax- the value for thetaxrecord 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. -
lastReviewTime
Returns the value of thelastReviewTimerecord component.- Returns:
- the value of the
lastReviewTimerecord component
-
world
-
creator
-
meta
-
listingId
-
onMannequin
public boolean onMannequin()Returns the value of theonMannequinrecord component.- Returns:
- the value of the
onMannequinrecord component
-
retainer
-
sellerId
-
price
-
tax
-