Record Class RandomShop.RandomRecord

java.lang.Object
java.lang.Record
com.mclds.plugins.mcldscustomcontainer.impl.RandomShop.RandomRecord
Enclosing class:
RandomShop

public static record RandomShop.RandomRecord(String player_uuid, String item_namespaced_id, String item_display_name, int item_count, int price, int current_owner_money, double time) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    RandomRecord(String player_uuid, String item_namespaced_id, String item_display_name, int item_count, int price, int current_owner_money, double time)
    Creates an instance of a RandomRecord record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the current_owner_money record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the item_count record component.
    Returns the value of the item_display_name record component.
    Returns the value of the item_namespaced_id record component.
    Returns the value of the player_uuid record component.
    int
    Returns the value of the price record component.
    double
    Returns the value of the time record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RandomRecord

      public RandomRecord(String player_uuid, String item_namespaced_id, String item_display_name, int item_count, int price, int current_owner_money, double time)
      Creates an instance of a RandomRecord record class.
      Parameters:
      player_uuid - the value for the player_uuid record component
      item_namespaced_id - the value for the item_namespaced_id record component
      item_display_name - the value for the item_display_name record component
      item_count - the value for the item_count record component
      price - the value for the price record component
      current_owner_money - the value for the current_owner_money record component
      time - the value for the time 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.
    • player_uuid

      public String player_uuid()
      Returns the value of the player_uuid record component.
      Returns:
      the value of the player_uuid record component
    • item_namespaced_id

      public String item_namespaced_id()
      Returns the value of the item_namespaced_id record component.
      Returns:
      the value of the item_namespaced_id record component
    • item_display_name

      public String item_display_name()
      Returns the value of the item_display_name record component.
      Returns:
      the value of the item_display_name record component
    • item_count

      public int item_count()
      Returns the value of the item_count record component.
      Returns:
      the value of the item_count record component
    • price

      public int price()
      Returns the value of the price record component.
      Returns:
      the value of the price record component
    • current_owner_money

      public int current_owner_money()
      Returns the value of the current_owner_money record component.
      Returns:
      the value of the current_owner_money record component
    • time

      public double time()
      Returns the value of the time record component.
      Returns:
      the value of the time record component