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 world
creator - the creator
meta - item meta
retainer - the retainer data
price - the price
listingId - 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.
sellerId - A SHA256 hash of the seller's ID.
tax - The tax that will be added on top of the price.

public record Listing(LocalDateTime lastReviewTime, World world, Creator creator, ItemMeta meta, String listingId, boolean onMannequin, Retainer retainer, String sellerId, Price price, int tax) extends Record
A listing.
  • Constructor Details

    • Listing

      public Listing(LocalDateTime lastReviewTime, World world, Creator creator, ItemMeta meta, String listingId, boolean onMannequin, Retainer retainer, String sellerId, Price price, int tax)
      Creates an instance of a Listing record class.
      Parameters:
      lastReviewTime - the value for the lastReviewTime record component
      world - the value for the world record component
      creator - the value for the creator record component
      meta - the value for the meta record component
      listingId - the value for the listingId record component
      onMannequin - the value for the onMannequin record component
      retainer - the value for the retainer record component
      sellerId - the value for the sellerId record component
      price - the value for the price record component
      tax - the value for the tax record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • lastReviewTime

      public LocalDateTime lastReviewTime()
      Returns the value of the lastReviewTime record component.
      Returns:
      the value of the lastReviewTime record component
    • world

      public World world()
      Returns the value of the world record component.
      Returns:
      the value of the world record component
    • creator

      public Creator creator()
      Returns the value of the creator record component.
      Returns:
      the value of the creator record component
    • meta

      public ItemMeta meta()
      Returns the value of the meta record component.
      Returns:
      the value of the meta record component
    • listingId

      public String listingId()
      Returns the value of the listingId record component.
      Returns:
      the value of the listingId record component
    • onMannequin

      public boolean onMannequin()
      Returns the value of the onMannequin record component.
      Returns:
      the value of the onMannequin record component
    • retainer

      public Retainer retainer()
      Returns the value of the retainer record component.
      Returns:
      the value of the retainer record component
    • sellerId

      public String sellerId()
      Returns the value of the sellerId record component.
      Returns:
      the value of the sellerId record component
    • price

      public Price price()
      Returns the value of the price record component.
      Returns:
      the value of the price record component
    • tax

      public int tax()
      Returns the value of the tax record component.
      Returns:
      the value of the tax record component