Record Class InventoryConfiguration.ItemLayoutHolder

java.lang.Object
java.lang.Record
eu.cloudnetservice.modules.npc.configuration.InventoryConfiguration.ItemLayoutHolder
Enclosing class:
InventoryConfiguration

public static record InventoryConfiguration.ItemLayoutHolder(@NonNull ItemLayout emptyLayout, @NonNull ItemLayout onlineLayout, @NonNull ItemLayout fullLayout, @NonNull ItemLayout ingameLayout) extends Record
  • Field Details

  • Constructor Details

    • ItemLayoutHolder

      public ItemLayoutHolder(@NonNull @NonNull ItemLayout emptyLayout, @NonNull @NonNull ItemLayout onlineLayout, @NonNull @NonNull ItemLayout fullLayout, @NonNull @NonNull ItemLayout ingameLayout)
      Creates an instance of a ItemLayoutHolder record class.
      Parameters:
      emptyLayout - the value for the emptyLayout record component
      onlineLayout - the value for the onlineLayout record component
      fullLayout - the value for the fullLayout record component
      ingameLayout - the value for the ingameLayout 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • emptyLayout

      @NonNull public @NonNull ItemLayout emptyLayout()
      Returns the value of the emptyLayout record component.
      Returns:
      the value of the emptyLayout record component
    • onlineLayout

      @NonNull public @NonNull ItemLayout onlineLayout()
      Returns the value of the onlineLayout record component.
      Returns:
      the value of the onlineLayout record component
    • fullLayout

      @NonNull public @NonNull ItemLayout fullLayout()
      Returns the value of the fullLayout record component.
      Returns:
      the value of the fullLayout record component
    • ingameLayout

      @NonNull public @NonNull ItemLayout ingameLayout()
      Returns the value of the ingameLayout record component.
      Returns:
      the value of the ingameLayout record component